diff --git a/components/content.tsx b/components/content.tsx index ccb688c..5fc7ec2 100644 --- a/components/content.tsx +++ b/components/content.tsx @@ -1,10 +1,12 @@ -function Item({ item }) { +import ItemInterface from 'data/data-types'; + +function Item({ item }: { item: ItemInterface }) { return (
⬆️
- {item.votes} + {item.votes.length}
@@ -19,7 +21,7 @@ function Item({ item }) { ); } -export default function Content({ items }) { +export default function Content({ items }: { items: ItemInterface[] }) { return (