feat: add user management

This commit is contained in:
Elias Schneider
2022-12-05 15:53:24 +01:00
parent 31b3f6cb2f
commit 7a3967fd6f
25 changed files with 751 additions and 47 deletions

View File

@@ -10,6 +10,9 @@ const error = (message: string) =>
message: message,
});
const axiosError = (axiosError: any) =>
error(axiosError?.response?.data?.message ?? "An unknown error occured");
const success = (message: string) =>
showNotification({
icon: <TbCheck />,
@@ -22,5 +25,6 @@ const success = (message: string) =>
const toast = {
error,
success,
axiosError,
};
export default toast;