UI updates

This commit is contained in:
2022-04-27 05:10:49 -04:00
parent d444e4da7d
commit e006a7af5a
11 changed files with 107 additions and 47 deletions

View File

@@ -69,12 +69,12 @@ export function mapChild(obj: listItem | string, level: number) {
title = React.createElement('strong', {}, obj.title);
return (
<>
<section className={level < 5 ? 'block' : ''}>
{title}
{obj.description ? <p>{obj.description}</p> : <></>}
<div>
{obj.children.map(l => mapChild(l, level + 1))}
</div>
</>
</section>
);
}