I am getting info on tasks from my backend with JSON values of "isDone: false"
I would like some sort of an IF statement for the image that appears depending on whether the task is done.
return (
<Card
{...rest}
className={clsx(classes.root, className)}
>
<CardContent>
<div className={classes.imageContainer}>
<AccessTimeIcon className={classes.}/>
</div>
</div>
if the task is not done i want to show classes.doneIcon
How is this possible for me inside my return component?
Thanks!
Aucun commentaire:
Enregistrer un commentaire