Skip to content

Commit

Permalink
Merge pull request #69 from IvanAmoros/aitor-film-festival
Browse files Browse the repository at this point in the history
Aitor film festival
  • Loading branch information
IvanAmoros authored Oct 7, 2024
2 parents e883349 + aaf2652 commit e3e6faf
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/components/MoviesToWatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,23 @@ const MoviesToWatch = () => {
<Grid container spacing={1} sx={{ justifyContent: 'center' }}>
<Grid item xs={user && user.is_superuser ? 6 : 10}>
{movie.proposed_by === user?.username ? (
<Button
sx={{ borderRadius: 4, backgroundColor: '#C14953' }}
variant="contained"
color="error"
fullWidth
onClick={() => {
setSelectedFilmId(movie.id);
setOpenDeleteDialog(true);
}}
>
<DeleteForeverIcon />
</Button>
<Badge
sx={{ display: 'flex', width: '100%' }}
badgeContent={movie.total_upvotes}
color="success">
<Button
sx={{ borderRadius: 4, backgroundColor: '#C14953' }}
variant="contained"
color="error"
fullWidth
onClick={() => {
setSelectedFilmId(movie.id);
setOpenDeleteDialog(true);
}}
>
<DeleteForeverIcon />
</Button>
</Badge>
) : userUpvotedFilms.has(movie.id) ? (
<Badge
sx={{ display: 'flex', width: '100%' }}
Expand Down

0 comments on commit e3e6faf

Please sign in to comment.