Skip to content

Commit

Permalink
feat(#47): set likes type to number
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyadjie committed May 28, 2024
1 parent 715a531 commit a25c605
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/components/blocs/preview/adress/AdressPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type AdressProps = {
title: string;
subTitle: string;
stars: number;
likes: string;
likes: number;
imgUrl: string;
};

Expand Down Expand Up @@ -46,7 +46,8 @@ export const AdressPreview: React.FC<AdressProps> = ({
width={10}
height={10}
/>{' '}
{likes}
{likes * 100}
{'%'}
</span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/map/MapPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ const recommendations = [
title: 'Zerohachi Yakiniku restaurant OCAT',
subTitle: 'La vraie viande grillée japonaise.',
stars: 4.9,
likes: '97%',
likes: 0.97,
imgUrl:
'/images/map/recommendations/zerohachi_yakiniku_restaurant_ocat.jpg',
},
{
title: 'Hanasato KOBE',
subTitle: 'Dégustez du boeuf Hida.',
stars: 4.6,
likes: '92%',
likes: 0.92,
imgUrl: '/images/map/recommendations/hanasato_kobe.jpg',
},
{
title: 'Neiro',
subTitle: 'La vraie viande grillée japonaise.',
stars: 4.1,
likes: '95%',
likes: 0.95,
imgUrl: '/images/map/recommendations/neiro.jpg',
},
];
Expand Down

0 comments on commit a25c605

Please sign in to comment.