display hrs and minutes
This commit is contained in:
parent
91439cbcfa
commit
2da4c0aa12
3 changed files with 31 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
import { type RecipeSmall } from "../types/Recipe"
|
||||
import { Link } from 'react-router-dom';
|
||||
import StarRating from '../components/StarRating.tsx'
|
||||
import TimeDisplay from "../components/TimeDisplay.tsx"
|
||||
|
||||
function CookbookRecipeTile({ recipe }: { recipe: RecipeSmall }) {
|
||||
|
||||
|
@ -13,7 +14,7 @@ function CookbookRecipeTile({ recipe }: { recipe: RecipeSmall }) {
|
|||
</div>
|
||||
</div>
|
||||
<div className="flex justify-between items-center">
|
||||
⏰ {recipe.prep_minutes + recipe.cook_minutes} min
|
||||
⏰ <TimeDisplay minutes={recipe.prep_minutes + recipe.cook_minutes} />
|
||||
<StarRating rating={recipe.stars} onRatingChange={() => { }} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue