Linter fixies

This commit is contained in:
ilya-bkv 2022-12-01 21:52:44 +03:00
parent c74235182c
commit 38fe38c7fb
3 changed files with 4 additions and 5 deletions

View File

@ -72,7 +72,7 @@ export const ProfileSecurityPage = (props: PageProps) => {
<h5>Google</h5>
<div class="pretty-form__item">
<p>
<button class={clsx(styles.socialButton, 'button button--light')} type="button">
<button class={clsx('button button--light', styles.socialButton)} type="button">
<Icon name="google" class={styles.icon} />
Привязать
</button>

View File

@ -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) => {
</ul>
<div class={clsx('pretty-form__item', styles.searchContainer)}>
<SearchField onChange={() => {}} class={styles.searchField} />
<SearchField onChange={() => console.log('nothing')} class={styles.searchField} />
</div>
<div class={clsx(stylesSettings.settingsList, styles.topicsList)}>

View File

@ -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({