diff --git a/app/routes/quotes/components/Quote.tsx b/app/routes/quotes/components/Quote.tsx index efec557130..c95c821168 100644 --- a/app/routes/quotes/components/Quote.tsx +++ b/app/routes/quotes/components/Quote.tsx @@ -30,6 +30,7 @@ const Quote = ({ const fetchingEmojis = useAppSelector((state) => state.emojis.fetching); const [deleting, setDeleting] = useState(false); + const [pippi, setPippi] = useState(true); const dispatch = useAppDispatch(); let mappedEmojis: (Emoji & { hasReacted: boolean; reactionId: EntityId })[] = @@ -93,17 +94,15 @@ const Quote = ({ iconName="ellipsis-horizontal" > - - - + {!quote.approved && pippi ? ( + + + + ) : ( +
+ )} {!deleting ? ( @@ -113,8 +112,8 @@ const Quote = ({ e.preventDefault(); e.stopPropagation(); } - setDeleting(!deleting); + setPippi(false); }} > Slett @@ -123,7 +122,7 @@ const Quote = ({ ) : ( )}