Closed annagabain closed 1 month ago
[x] Task: Create CocktailCard.tsx component
CocktailCard.tsx
js/react
html
context
[11:03] Sara Vahidinovin: This is the cocktail card component:
import { Drink } from '../type'; export default function CocktailCard({ drink }: { drink: Drink }) { return ( <div className="card"> <img src={drink.strDrinkThumb} alt={drink.strDrink} className="card-image" /> <h3>{drink.strDrink}</h3> {/* <p>{drink.strInstructions}</p> */} </div> ); }
local tests passed on my branch with the SearchPage.tsx, waiting for @SaraVahidinovin pull request and merge to test with the main appliaction
SearchPage.tsx
[x] Task: Create
CocktailCard.tsx
componentjs/react
,html
,context
[11:03] Sara Vahidinovin: This is the cocktail card component: