diff --git a/mobile/src/screens/EditActivityLog.tsx b/mobile/src/screens/EditActivityLog.tsx index 1481e385..f5cb8b85 100644 --- a/mobile/src/screens/EditActivityLog.tsx +++ b/mobile/src/screens/EditActivityLog.tsx @@ -9,7 +9,6 @@ import ActivityLogForm, { import { useForm } from 'react-hook-form'; import { yupResolver } from '@hookform/resolvers/yup'; import { useUpdateActivityLog } from '../services/activity-log/activity-log.service'; -import { parse } from 'date-fns'; import Toast from 'react-native-toast-message'; import { InternalErrors } from '../common/errors/internal-errors.class'; import { CONSTANTS } from '../common/constants/constants'; diff --git a/mobile/src/services/user/user.api.ts b/mobile/src/services/user/user.api.ts index 28e91b1c..24ab3f48 100644 --- a/mobile/src/services/user/user.api.ts +++ b/mobile/src/services/user/user.api.ts @@ -3,6 +3,7 @@ import { ILegalGuardianData, IUserProfile } from '../../common/interfaces/user-p import { ICreateUserPayload } from '../../common/interfaces/create-user-payload.interface'; import { AccountDataFormTypes } from '../../screens/AccountData'; import { ImageAttachement } from '../../common/interfaces/image-attachement.interface'; +import { format } from 'date-fns'; export const createUserProfile = async (userProfile: ICreateUserPayload): Promise => { return API.post('/mobile/user', userProfile).then((res) => res.data);