|
@@ -43,9 +43,9 @@ import LinkIcon from '../../../../../assets/icons/link.svg';
|
|
|
import { ButtonVariants } from 'src/types/components';
|
|
|
import { NAVIGATION_PAGES } from 'src/types';
|
|
|
import { useDeleteUserMutation } from '@api/app';
|
|
|
-import { useNotification } from 'src/contexts/NotificationContext';
|
|
|
import { useMessagesStore } from 'src/stores/unreadMessagesStore';
|
|
|
import { useAvatarStore } from 'src/stores/avatarVersionStore';
|
|
|
+import { useFriendsNotificationsStore } from 'src/stores/friendsNotificationsStore';
|
|
|
|
|
|
const ProfileSchema = yup.object({
|
|
|
username: yup.string().optional(),
|
|
@@ -75,10 +75,12 @@ export const EditPersonalInfo = () => {
|
|
|
const queryClient = useQueryClient();
|
|
|
|
|
|
const { data, error } = usePostGetProfileQuery(String(token), true);
|
|
|
- const { updateNotificationStatus } = useNotification();
|
|
|
+ const updateNotificationStatus = useFriendsNotificationsStore(
|
|
|
+ (state) => state.updateNotificationStatus
|
|
|
+ );
|
|
|
const updateUnreadMessagesCount = useMessagesStore((state) => state.updateUnreadMessagesCount);
|
|
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
|
- const {incrementAvatarVersion} = useAvatarStore();
|
|
|
+ const { incrementAvatarVersion } = useAvatarStore();
|
|
|
|
|
|
const regions = useGetRegionsWithFlagQuery(true);
|
|
|
const [modalInfo, setModalInfo] = useState({
|
|
@@ -343,7 +345,9 @@ export const EditPersonalInfo = () => {
|
|
|
formikError={props.touched.other && props.errors.other}
|
|
|
/>
|
|
|
<View style={{ marginTop: 15, marginBottom: 15, gap: 8 }}>
|
|
|
- <Button onPress={props.handleSubmit} disabled={isSubmitting}>Save</Button>
|
|
|
+ <Button onPress={props.handleSubmit} disabled={isSubmitting}>
|
|
|
+ Save
|
|
|
+ </Button>
|
|
|
<Button
|
|
|
variant={ButtonVariants.OPACITY}
|
|
|
containerStyles={{ backgroundColor: Colors.WHITE, borderColor: Colors.RED }}
|