diff --git a/web/components/markdown.tsx b/web/components/markdown.tsx index 70097b96..3f889bad 100644 --- a/web/components/markdown.tsx +++ b/web/components/markdown.tsx @@ -37,20 +37,20 @@ export default function MarkdownPage({content, filename}: Props) { const {query} = router const fromSignup = query.fromSignup === 'true' - if (fromSignup) { - return ( - - - - -
- {content} -
- - + const backButton = fromSignup && + + const formattedContent = + + + {backButton} +
+ {content} +
- ) - } + + + + if (fromSignup) return formattedContent return ( @@ -59,13 +59,7 @@ export default function MarkdownPage({content, filename}: Props) { description={title} url={`/` + filename} /> - - -
- {content} -
- - + {formattedContent}
- ); + ) } \ No newline at end of file