feat(org): Switched to better dynamic mdx
This commit is contained in:
parent
166c8bc03b
commit
90afd3e28e
36 changed files with 267 additions and 267 deletions
|
@ -9,7 +9,7 @@ import { useBackend } from 'shared/hooks/use-backend.mjs'
|
|||
import { BackToAccountButton } from './shared.mjs'
|
||||
import { SaveSettingsButton } from 'shared/components/buttons/save-settings-button.mjs'
|
||||
import { StringInput } from 'shared/components/inputs.mjs'
|
||||
import { DynamicOrgDocs } from 'site/components/dynamic-org-docs.mjs'
|
||||
import { DynamicMdx } from 'shared/components/mdx/dynamic.mjs'
|
||||
|
||||
export const ns = ['account', 'status']
|
||||
|
||||
|
@ -44,7 +44,7 @@ export const GithubSettings = () => {
|
|||
update={setGithubEmail}
|
||||
valid={(val) => val.length > 0}
|
||||
placeholder={'joostdecock'}
|
||||
docs={<DynamicOrgDocs language={i18n.language} path={`site/account/github`} />}
|
||||
docs={<DynamicMdx language={i18n.language} slug={`docs/site/account/github`} />}
|
||||
/>
|
||||
<StringInput
|
||||
id="account-github-username"
|
||||
|
@ -53,7 +53,7 @@ export const GithubSettings = () => {
|
|||
update={setGithubUsername}
|
||||
valid={(val) => val.length > 0}
|
||||
placeholder={'joost@joost.at'}
|
||||
docs={<DynamicOrgDocs language={i18n.language} path={`site/account/github`} />}
|
||||
docs={<DynamicOrgDocs language={i18n.language} path={`docs/site/account/github`} />}
|
||||
/>
|
||||
<SaveSettingsButton btnProps={{ onClick: save }} />
|
||||
<BackToAccountButton />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue