Skip to content

Commit

Permalink
add nl2br thing
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedvrs committed Mar 24, 2022
1 parent f2c5a62 commit 3d569fe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion domain/core/DiagnoseWizard/templates/Result.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import nl2br from 'react-nl2br'

interface ResultProps {
result: string
}
Expand All @@ -6,7 +8,7 @@ export const Result: React.FunctionComponent<ResultProps> = ({ result }) => {
return (
<div>
<h1>Conclusion</h1>
<p>{result}</p>
<p>{nl2br(result)}</p>
</div>
)
}
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"next": "12.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-nl2br": "^1.0.2",
"ssh2": "^1.8.0"
},
"devDependencies": {
Expand Down

1 comment on commit 3d569fe

@vercel
Copy link

@vercel vercel bot commented on 3d569fe Mar 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.