Skip to content

Commit

Permalink
Update verify notify
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 17, 2024
1 parent 03b3feb commit 40e174c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions frontend/src/pages/edit/ui/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,6 @@ export function Edit({verifySend, verify_hook}: Props) {
Верификация
</Button>
</div>
{
user.verify &&
<div className={styles['warning-container']}>
<span>Изменение любого из параметров приведёт к сбросу вашей верификации!</span>
</div>
}
</div>
</main>
}
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/pages/edit/ui/modal_edit.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from './modal.module.scss'
import { Button, Sheet } from "@gravity-ui/uikit"
import { Button, Sheet, Text } from "@gravity-ui/uikit"
import { ReactElement, useContext, useRef } from "react"
import { UserContext } from '../../../app/providers'
import { addNotify } from '../../../shared'
Expand Down Expand Up @@ -49,9 +49,10 @@ export function ModalEdit({is_open, close_hook, open_desc, open_litera, open_nam
}
}

return (
return (<>
<Sheet title='Редактировать' visible={is_open} onClose={close_hook}>
<div className={styles['content']}>
{user?.verify && <Text variant='body-1' color='hint' style={{textAlign: "center"}}>Изменение любого из параметров приведёт к сбросу вашей верификации</Text>}
<div className={styles['button-list']}>
<Button width='max' onClick={onGender} size="m" view='outlined'>Пол</Button>
<Button width='max' onClick={open_desc} size="m" view='outlined'>О себе</Button>
Expand All @@ -69,5 +70,5 @@ export function ModalEdit({is_open, close_hook, open_desc, open_litera, open_nam
<Button width='max' onClick={close_hook} size="l">Закрыть</Button>
</div>
</Sheet>
)
</>)
}

0 comments on commit 40e174c

Please sign in to comment.