a bit of types

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-11-12 20:18:36 +03:00
parent fd0eb66563
commit 0f211115cf
4 changed files with 12 additions and 13 deletions
+1 -2
View File
@@ -149,9 +149,8 @@ const withStars =
)
}
const Counter = ({ stars, addStar, subStar, userId }) => {
const Counter = ({ stars, addStar, subStar, userId }: { userId: 'some-user-id' | '2'}) => {
const { rate, setUserRate } = useUsers((state) => state[userId].rated)
console.log(userId)
return (
<Center>