Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 20, 2020
1 parent f63dddf commit f003aef
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ const FRUITS = [
'🍉 Watermelon',
];

function renderItem({ item, handleRemoveFruit }) {
interface RenderItemOptions {
item: string;
handleRemoveFruit: (item: string) => void;
}

function renderItem({ item, handleRemoveFruit }: RenderItemOptions) {
return (
<ListItem>
<ListItemText primary={item} />
Expand Down

0 comments on commit f003aef

Please sign in to comment.