MCPcopy Create free account
hub / github.com/SuboptimalEng/coding-tutorials / favoriteShow

Function favoriteShow

react-anime/src/components/AnimeCard.tsx:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 const cardClass = `flex rounded-lg ${cardColor} text-black shadow-xl `;
15
16 const favoriteShow = () => {
17 props.setFavorites([
18 ...props.favorites,
19 {
20 image_url: props.image_url,
21 title: props.title,
22 score: props.score,
23 episodes: props.episodes,
24 synopsis: props.synopsis,
25 },
26 ]);
27 };
28
29 return (
30 <div key={props.i} className={cardClass} onClick={favoriteShow}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected