Skip to content

Commit

Permalink
Merge 789e3c5 into c3cce3d
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jun 16, 2024
2 parents c3cce3d + 789e3c5 commit b7ef04a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/NotificationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const NotificationRow: FC<IProps> = ({ notification }) => {
const [animateExit, setAnimateExit] = useState(false);

const handleNotification = useCallback(() => {
setAnimateExit(true);
setAnimateExit(!settings.delayNotificationState);
openNotification(notification);

if (settings.markAsDoneOnOpen) {
Expand Down Expand Up @@ -218,7 +218,7 @@ export const NotificationRow: FC<IProps> = ({ notification }) => {
className="h-full hover:text-green-500 focus:outline-none"
title="Mark as Done"
onClick={() => {
setAnimateExit(true);
setAnimateExit(!settings.delayNotificationState);
markNotificationDone(notification);
}}
>
Expand All @@ -239,7 +239,7 @@ export const NotificationRow: FC<IProps> = ({ notification }) => {
className="h-full hover:text-green-500 focus:outline-none"
title="Mark as Read"
onClick={() => {
setAnimateExit(true);
setAnimateExit(!settings.delayNotificationState);
markNotificationRead(notification);
}}
>
Expand Down
1 change: 1 addition & 0 deletions src/context/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
settings.participating,
settings.showBots,
settings.detailedNotifications,
settings.delayNotificationState,
auth.accounts.length,
]);

Expand Down

0 comments on commit b7ef04a

Please sign in to comment.