Yuki Takei 3 лет назад
Родитель
Сommit
3b948fedf9
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      packages/presentation/src/components/Sections.tsx

+ 3 - 4
packages/presentation/src/components/Sections.tsx

@@ -35,10 +35,9 @@ export const Sections = (props: SectionsProps): JSX.Element => {
       <Head>
         <style>{css}</style>
       </Head>
-      { children == null
-        ? <section><h2>No contents</h2></section>
-        : <ReactMarkdown {...rendererOptions}>{children}</ReactMarkdown>
-      }
+      <ReactMarkdown {...rendererOptions}>
+        { children ?? '## No Contents' }
+      </ReactMarkdown>
     </>
   );
 };