From 38fe38c7fb0454166fbdfda2fa8c3a55b83a5f78 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Thu, 1 Dec 2022 21:52:44 +0300 Subject: [PATCH] Linter fixies --- src/components/Pages/profile/ProfileSecurityPage.tsx | 2 +- src/components/Pages/profile/ProfileSubscriptionsPage.tsx | 3 +-- src/context/profile.tsx | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/Pages/profile/ProfileSecurityPage.tsx b/src/components/Pages/profile/ProfileSecurityPage.tsx index c21a8a7b..d0a07515 100644 --- a/src/components/Pages/profile/ProfileSecurityPage.tsx +++ b/src/components/Pages/profile/ProfileSecurityPage.tsx @@ -72,7 +72,7 @@ export const ProfileSecurityPage = (props: PageProps) => {
Google

- diff --git a/src/components/Pages/profile/ProfileSubscriptionsPage.tsx b/src/components/Pages/profile/ProfileSubscriptionsPage.tsx index 046bb8c7..d4b65eb9 100644 --- a/src/components/Pages/profile/ProfileSubscriptionsPage.tsx +++ b/src/components/Pages/profile/ProfileSubscriptionsPage.tsx @@ -2,7 +2,6 @@ import { PageWrap } from '../../_shared/PageWrap' import type { PageProps } from '../../types' import styles from './Settings.module.scss' import stylesSettings from '../../../styles/FeedSettings.module.scss' -import { Icon } from '../../_shared/Icon' import { clsx } from 'clsx' import ProfileSettingsNavigation from '../../Discours/ProfileSettingsNavigation' import { SearchField } from '../../_shared/SearchField' @@ -43,7 +42,7 @@ export const ProfileSubscriptionsPage = (props: PageProps) => {

- {}} class={styles.searchField} /> + console.log('nothing')} class={styles.searchField} />
diff --git a/src/context/profile.tsx b/src/context/profile.tsx index 79cd3dd9..91bc4cb6 100644 --- a/src/context/profile.tsx +++ b/src/context/profile.tsx @@ -45,9 +45,9 @@ const useProfileForm = () => { const updateFormField = (fieldName: string, value: string, remove?: boolean) => { if (fieldName === 'links') { if (remove) { - setForm((prev) => ({ ...prev, links: [...prev?.links.filter((item) => item !== value)] })) + setForm((prev) => ({ ...prev, links: [...prev.links.filter((item) => item !== value)] })) } else { - setForm((prev) => ({ ...prev, links: [...prev?.links, value] })) + setForm((prev) => ({ ...prev, links: [...prev.links, value] })) } } else { setForm({