diff --git a/apps/Frontend/src/pages/settings-page.tsx b/apps/Frontend/src/pages/settings-page.tsx index 14ac084..2dd3f49 100755 --- a/apps/Frontend/src/pages/settings-page.tsx +++ b/apps/Frontend/src/pages/settings-page.tsx @@ -44,9 +44,9 @@ export default function SettingsPage() { const addStaffMutate = useMutation< Staff, // Return type Error, // Error type - Omit // Variables + Omit // Variables >({ - mutationFn: async (newStaff: Omit) => { + mutationFn: async (newStaff: Omit) => { const res = await apiRequest("POST", "/api/staffs/", newStaff); if (!res.ok) { const errorData = await res.json().catch(() => null); @@ -157,7 +157,7 @@ export default function SettingsPage() { }; // Handle form submit for Add or Edit - const handleFormSubmit = (formData: Omit) => { + const handleFormSubmit = (formData: Omit) => { if (editingStaff) { // Editing existing staff if (editingStaff.id === undefined) { @@ -433,7 +433,7 @@ export default function SettingsPage() { {/* User Setting section */} -

User Settings

+

Admin Settings

{