chore: fix renderer props

This commit is contained in:
Steven
2024-01-05 08:47:43 +08:00
parent ce2d37b90c
commit f563b58a85
11 changed files with 34 additions and 20 deletions

View File

@ -15,7 +15,7 @@ const UnorderedList: React.FC<Props> = ({ children }: Props) => {
</div>
<div>
{children.map((child, index) => (
<Renderer key={`${child.type}-${index}`} node={child} />
<Renderer key={`${child.type}-${index}`} index={String(index)} node={child} />
))}
</div>
</li>