Chore: change misleading query name

This commit is contained in:
csrapr 2021-02-17 17:51:36 +00:00 committed by Josh Harvey
parent b89ba7d939
commit 2401238b2f
5 changed files with 45 additions and 28 deletions

View file

@ -32,7 +32,7 @@ const NotificationRow = ({
created,
read,
valid,
onClear
toggleClear
}) => {
const classes = useStyles()
@ -73,8 +73,10 @@ const NotificationRow = ({
</Grid>
</Grid>
<Grid item xs={3} style={{ zIndex: 1 }}>
{!read && (
<div onClick={() => onClear(id)} className={classes.unreadIcon} />
{read ? (
<div onClick={() => toggleClear(id)} className={classes.readIcon} />
) : (
<div onClick={() => toggleClear(id)} className={classes.unreadIcon} />
)}
</Grid>
{!valid && <StripesSvg className={classes.stripes} />}