diff --git a/components/page/rich-text-display.tsx b/components/page/rich-text-display.tsx index e7c2dcb5a..a66b2e407 100644 --- a/components/page/rich-text-display.tsx +++ b/components/page/rich-text-display.tsx @@ -1,3 +1,5 @@ +import clsx from 'clsx'; + type Text = { type: 'text'; value: string; @@ -9,7 +11,7 @@ type Content = | Text | { type: 'list'; - listType: 'bullet' | 'ordered'; + listType: 'bullet' | 'ordered' | 'unordered'; children: Array<{ type: 'listItem'; children: Text[] }>; } | { type: 'listItem'; children: Text[] }; @@ -27,9 +29,14 @@ const RichTextBlock = ({ block }: { block: Content }) => { return block.children.map((child, index) => ); } - if (block.type === 'list' && block.listType === 'ordered') { + if (block.type === 'list') { return ( -
    +
      {block.children.map((child, index) => (