Skip to content
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

Merged
merged 3 commits into from
Sep 26, 2021
Merged

Login / Registration #24

merged 3 commits into from
Sep 26, 2021

Conversation

sunny-viktoryia
Copy link
Contributor

базовая функциональность логина и регистрации.
красоту можно чуть попозже навести
+ нет обработок ошибок апи

closes #13

@sunny-viktoryia sunny-viktoryia added the enhancement New feature or request label Sep 26, 2021
@sunny-viktoryia sunny-viktoryia self-assigned this Sep 26, 2021
@sunny-viktoryia sunny-viktoryia changed the title 13 login registration pages Login / Registration Sep 26, 2021
Comment on lines 19 to 20
function Copyright(props: any) {
return (
Copy link
Contributor

@shoom1337 shoom1337 Sep 26, 2021

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 та же самая разметка, просто он у нас уже создан и будет один на весь проект.

@Alkamenos Alkamenos temporarily deployed to super-mario-yandex September 26, 2021 15:03 Inactive
avatar: string;
}

export type SigninProps = Pick<User, "login"> & { password: string };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Супер определение типа! Я бы создал два разных с дублированием login, password, а теперь отмечу себе и ещё раз прочитаю про утилиты и буду применять чаще

Alkamenos
Alkamenos previously approved these changes Sep 26, 2021
Copy link
Member

@Alkamenos Alkamenos left a 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({
Copy link
Member

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" {
Copy link
Member

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");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Наверное сразу можно отправлять в /app

@shoom1337 shoom1337 merged commit b8660c0 into sprint-01 Sep 26, 2021
@shoom1337 shoom1337 deleted the 13-login-registration-pages branch September 26, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants