mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
Fix: Do not pass children as props.
This commit is contained in:
parent
0258de61b0
commit
34df66d050
@ -19,9 +19,13 @@ export default function HcuNews() {
|
|||||||
<div>
|
<div>
|
||||||
<h1>{t('hcunews')}</h1>
|
<h1>{t('hcunews')}</h1>
|
||||||
{lang === 'ja' ? (
|
{lang === 'ja' ? (
|
||||||
<ReactMarkdown plugins={[gfm]} children={ja} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{ja}
|
||||||
|
</ReactMarkdown>
|
||||||
) : (
|
) : (
|
||||||
<ReactMarkdown plugins={[gfm]} children={en} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{en}
|
||||||
|
</ReactMarkdown>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -86,12 +86,15 @@ export default function About(props) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Load markdown contents */}
|
{/* Load markdown contents */}
|
||||||
{lang === 'ja' ? (
|
{lang === 'ja' ? (
|
||||||
<ReactMarkdown plugins={[gfm]} children={ja} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
) : (
|
{ja}
|
||||||
<ReactMarkdown plugins={[gfm]} children={en} />
|
</ReactMarkdown>
|
||||||
)}
|
) : (
|
||||||
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{en}
|
||||||
|
</ReactMarkdown>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
</>
|
</>
|
||||||
|
@ -30,9 +30,13 @@ export default function Tos(props) {
|
|||||||
<Layout title={t('common:mutual')}>
|
<Layout title={t('common:mutual')}>
|
||||||
<div>
|
<div>
|
||||||
{lang === 'ja' ? (
|
{lang === 'ja' ? (
|
||||||
<ReactMarkdown plugins={[gfm]} children={ja} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{ja}
|
||||||
|
</ReactMarkdown>
|
||||||
) : (
|
) : (
|
||||||
<ReactMarkdown plugins={[gfm]} children={en} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{en}
|
||||||
|
</ReactMarkdown>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
14
pages/tos.js
14
pages/tos.js
@ -14,11 +14,15 @@ export default function Tos(props) {
|
|||||||
return(
|
return(
|
||||||
<Layout title={t('tos')}>
|
<Layout title={t('tos')}>
|
||||||
<div>
|
<div>
|
||||||
{lang === 'ja' ? (
|
{lang === 'ja' ? (
|
||||||
<ReactMarkdown plugins={[gfm]} children={ja} />
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
) : (
|
{ja}
|
||||||
<ReactMarkdown plugins={[gfm]} children={en} />
|
</ReactMarkdown>
|
||||||
)}
|
) : (
|
||||||
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
|
{en}
|
||||||
|
</ReactMarkdown>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user