add react-markdown for some reason.

also add block text to message card
This commit is contained in:
MeowcaTheoRange 2023-09-25 22:30:34 -05:00
parent 67114bafeb
commit 779c7480a7
3 changed files with 934 additions and 1 deletions

932
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -42,6 +42,7 @@
"next": "^13.4.7", "next": "^13.4.7",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-markdown": "^8.0.7",
"tsconfig-paths": "^4.2.0", "tsconfig-paths": "^4.2.0",
"yup": "^1.2.0" "yup": "^1.2.0"
} }

View file

@ -51,7 +51,7 @@ export default function MessageCard({
<p className={globals.titleSmall}>{message.subject}</p> <p className={globals.titleSmall}>{message.subject}</p>
</Conditional> </Conditional>
<Conditional condition={message.body != ""}> <Conditional condition={message.body != ""}>
<p className={globals.text}>{message.body}</p> <p className={globals.blockText}>{message.body}</p>
</Conditional> </Conditional>
</div> </div>
</div> </div>