Skip to content

Commit

Permalink
feat(navigation): add navigation to edit page after successful save f…
Browse files Browse the repository at this point in the history
…or event and organization
  • Loading branch information
PaiJi committed Dec 23, 2024
1 parent 6ecb731 commit 2da2b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/dashboard/event/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ function EventEditorContent({ event }: { event?: EventType }) {
color: 'teal',
autoClose: false,
});
navigate(`/dashboard/event/${res.id}/edit`);
}
}
};
Expand Down
1 change: 1 addition & 0 deletions src/pages/dashboard/organization/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function OrganizationEditorContent({
color: 'teal',
autoClose: false,
});
navigate(`/dashboard/organization/${res.id}/edit`);
}
}
} else {
Expand Down

0 comments on commit 2da2b55

Please sign in to comment.