Skip to content

Commit

Permalink
fix toast loading
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelp committed Jan 9, 2025
1 parent 8ca3395 commit 8675c48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/components/admin/toggles/NavItemsManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ interface NavItemsManagerProps {
export function NavItemsManager({ navItems }: NavItemsManagerProps) {
const { execute, result, status } = useAction(removeItem, {
onSuccess: () => {
toast.dismiss();
toast.success("NavItem deleted successfully!");
},
onError: () => {
toast.dismiss();
toast.error("Error deleting NavItem");
},
});
Expand Down

0 comments on commit 8675c48

Please sign in to comment.