Linter fixies
This commit is contained in:
parent
c74235182c
commit
38fe38c7fb
|
@ -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>
|
||||
|
|
|
@ -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)}>
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user