-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login / Registration #24
Conversation
function Copyright(props: any) { | ||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPD: торопимся сдать, поэтому заменил сам)
Получится оперативно заменить Copyright на компонент Footer? Он в sprint_01 уже есть, внутри Footer та же самая разметка, просто он у нас уже создан и будет один на весь проект.
avatar: string; | ||
} | ||
|
||
export type SigninProps = Pick<User, "login"> & { password: string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Супер определение типа! Я бы создал два разных с дублированием login, password, а теперь отмечу себе и ещё раз прочитаю про утилиты и буду применять чаще
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Очень круто! Ты молодец! 👍
const history = createBrowserHistory(); | ||
const StubComponent = () => <div>Under construction! 👻</div>; | ||
|
||
const darkTheme = createTheme({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я бы вынес это в Theme.ts
import { Game } from "./pages/Game"; | ||
|
||
declare module "@material-ui/core/styles" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это зачем? Я не придираюсь мне действительно интересно 🤔
validationSchema: signInSchema, | ||
onSubmit: (values) => { | ||
signin(values).then((data) => { | ||
history.push("/profile"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Наверное сразу можно отправлять в /app
базовая функциональность логина и регистрации.
красоту можно чуть попозже навести
+ нет обработок ошибок апи
closes #13