This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { UpdateAboutInfoType } from '../../../../services/api/profile.service' | |
| import { Place } from '../../../../types' | |
| import { Validations } from '../../../hooks/use-form' | |
| export const updateAboutInfoValidations: Validations<UpdateAboutInfoType> = { | |
| about: { | |
| custom: { | |
| isValid: (value: string) => value?.length >= 128 && value?.length <= 256, | |
| message: 'Your bio should be atleast 128 characters and atmost 256 characters.', | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'lodash' | |
| import { FormEvent, useEffect, useState } from 'react' | |
| import { useAppDispatch } from '.' | |
| import { | |
| NotificationTitleType, | |
| showNotification, | |
| } from '../../app/features/notification/notification.slice' | |
| import { Place } from '../../types' |