Skip to content

Commit b5b925a

Browse files
committed
refactor(webapp): simplify ReactMarkdown component usage
Reduce redundancy by migrating `children` prop to JSX. Enhances code clarity and maintains functionality.
1 parent 08b9729 commit b5b925a

File tree

1 file changed

+3
-5
lines changed
  • packages/nouns-webapp/src/components/proposal-editor

1 file changed

+3
-5
lines changed

packages/nouns-webapp/src/components/proposal-editor/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ const ProposalEditor = ({
6262
<hr />
6363
</>
6464
)}
65-
<ReactMarkdown
66-
className={classes.markdown}
67-
children={proposalText}
68-
remarkPlugins={[remarkBreaks]}
69-
/>
65+
<ReactMarkdown className={classes.markdown} remarkPlugins={[remarkBreaks]}>
66+
{proposalText}
67+
</ReactMarkdown>
7068
</div>
7169
)}
7270
</div>

0 commit comments

Comments
 (0)