Skip to content

Commit

Permalink
Merge pull request #7 from RaZoom-Team/no-prod
Browse files Browse the repository at this point in the history
Some ui fixes
  • Loading branch information
Ramchike authored Nov 13, 2024
2 parents 9351944 + 038c9f6 commit b1a1305
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions frontend/src/app/ui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Auth} from '../../pages'
import { UserContext } from '../providers'
import { editIcon, feedIcon, historyIcon, NavBar, NavIcon } from '../../shared'
import { Router } from '../router/router'
import { ThemeProvider } from '@gravity-ui/uikit'
import { Loader, ThemeProvider } from '@gravity-ui/uikit'
import ReactDOMClient from 'react-dom/client';
import {Toaster} from '@gravity-ui/uikit';

Expand All @@ -20,7 +20,9 @@ export function App() {
}, [])

if (user === undefined) {
return <>Загрузка</>
return <main className={styles['main']}>
<Loader size='l'></Loader>
</main>
}
else if (user === null) {
return <Auth/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/edit/ui/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export function Edit({verifySend, verify_hook}: Props) {
title: 'Фото обновлено',
content: 'Вы успешно обновили фотографию своего профиля'
})
setImg(undefined)
setUser(user)
setImg(undefined)
}

const onPhoto = (img: string | undefined) => {
Expand Down

0 comments on commit b1a1305

Please sign in to comment.