feat: service deleting and rest categories placeholders
This commit is contained in:
@@ -9,7 +9,7 @@ import useServicesList from "./useServicesList.tsx";
|
||||
import { Text } from "@mantine/core";
|
||||
|
||||
const useServicesState = () => {
|
||||
const { services, refetch } = useServicesList();
|
||||
const { services, refetch } = useServicesList({ withPlaceholders: true });
|
||||
|
||||
const onCreateClick = () => {
|
||||
modals.openContextModal({
|
||||
@@ -27,7 +27,7 @@ const useServicesState = () => {
|
||||
notifications.guess(ok, { message: message });
|
||||
if (!ok) return;
|
||||
await refetch();
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ const useServicesState = () => {
|
||||
ServiceService.createServiceCategory({
|
||||
requestBody: { category: category },
|
||||
}).then(({ ok, message }) =>
|
||||
notifications.guess(ok, { message: message })
|
||||
notifications.guess(ok, { message: message }),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user