chore(shared): Replace react-markdown with dynamic mdx
This commit is contained in:
parent
763190d721
commit
33f7076c76
20 changed files with 42 additions and 54 deletions
|
@ -10,7 +10,7 @@ import { useAccount } from 'shared/hooks/use-account.mjs'
|
|||
// Components
|
||||
import Link from 'next/link'
|
||||
import { Json } from 'shared/components/json.mjs'
|
||||
import Markdown from 'react-markdown'
|
||||
import { Mdx } from 'shared/components/mdx/dynamic.mjs'
|
||||
import { AccountRole } from 'shared/components/account/role.mjs'
|
||||
import { AccountStatus } from 'shared/components/account/status.mjs'
|
||||
import { Loading } from 'shared/components/spinner.mjs'
|
||||
|
@ -113,7 +113,7 @@ export const ShowUser = ({ user, button = null }) => (
|
|||
<div className="max-w-xs flex flex-col gap-2">{button}</div>
|
||||
</div>
|
||||
<div className="max-w-full truncate">
|
||||
<Markdown>{user.bio}</Markdown>
|
||||
<Mdx md={user.bio} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue