Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload data when removed #51

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const AdminUsers = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchAdminUsers();
};
return (
<div className="m-10">
Expand Down Expand Up @@ -130,7 +130,7 @@ export const AdminUsers = () => {
adminUser.email
);
alert('Successfully removed');
window.location.reload();
fetchAdminUsers();
}}
>
Remove
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Ban = () => {
serverFunctions.appendRow(BAN_SHEET_NAME, [email, new Date().toString()]);

alert('User has been registered successfully!');
window.location.reload();
fetchBans();
};
return (
<div className="m-10">
Expand Down Expand Up @@ -127,7 +127,7 @@ export const Ban = () => {
ban.email
);
alert('Successfully removed');
window.location.reload();
fetchBans();
}}
>
Remove
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Liaisons = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchLiaisonUsers();
};
return (
<div className="m-10">
Expand Down Expand Up @@ -166,7 +166,7 @@ export const Liaisons = () => {
liaison.email
);
alert('Successfully removed');
window.location.reload();
fetchLiaisonUsers();
}}
>
Remove
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const SafetyTraining = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchSafetyTrainings();
};
return (
<div className="m-10">
Expand Down Expand Up @@ -131,7 +131,7 @@ export const SafetyTraining = () => {
safetyTraining.email
);
alert('Successfully removed');
window.location.reload();
fetchSafetyTrainings();
}}
>
Remove
Expand Down
Loading