A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix build
Jonathan ARNAULTb923fbec64b6
diff --git a/src/providers/fakerest/dataProvider.ts b/src/providers/fakerest/dataProvider.tsindex 12502348..1a926363 100644--- a/src/providers/fakerest/dataProvider.ts+++ b/src/providers/fakerest/dataProvider.ts@@ -277,6 +277,8 @@ export const dataProvider = withLifecycleCallbacks(return params;},afterSave: async data => {+ // Since the current user is stored in localStorage in fakerest authProvider+ // we need to update it to keep information up to date in the UIconst currentUser = await authProvider.getIdentity?.();if (currentUser?.id === data.id) {localStorage.setItem(diff --git a/src/settings/UpdatePassword.tsx b/src/settings/UpdatePassword.tsxindex f3f97b2b..06b2fea3 100644--- a/src/settings/UpdatePassword.tsx+++ b/src/settings/UpdatePassword.tsx@@ -7,6 +7,7 @@ import {Stack,TextField,} from '@mui/material';+import { useMutation } from '@tanstack/react-query';import {Toolbar,useDataProvider,@@ -15,8 +16,7 @@ import {} from 'react-admin';import { useForm } from 'react-hook-form';import { DialogCloseButton } from '../misc/DialogCloseButton';-import { useMutation } from '@tanstack/react-query';-import { CustomDataProvider } from '../dataProvider';+import { CrmDataProvider } from '../providers/types';import { UpdatePasswordData } from '../types';const PASSWORD_POLICY = {@@ -43,7 +43,7 @@ export const UpdatePassword = ({const newPassword = watch('newPassword');const { identity } = useGetIdentity();const notify = useNotify();- const dataProvider = useDataProvider<CustomDataProvider>();+ const dataProvider = useDataProvider<CrmDataProvider>();const { mutate } = useMutation({mutationKey: ['updatePassword'],