Web:Login: fix errors after merge

This commit is contained in:
Timofey Boyko 2022-03-18 11:15:50 +03:00
parent 27fab6de23
commit 052a76aa36
2 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import PageLayout from "@appserver/common/components/PageLayout";
import Section from "@appserver/common/components/Section";
import { withRouter } from "react-router";
import {
I18nextProvider,
@ -105,11 +105,11 @@ const Form = () => {
const CodeLoginForm = (props) => {
return (
<LoginFormWrapper>
<PageLayout>
<PageLayout.SectionBody>
<Section>
<Section.SectionBody>
<Form {...props} />
</PageLayout.SectionBody>
</PageLayout>
</Section.SectionBody>
</Section>
</LoginFormWrapper>
);
};

View File

@ -8,7 +8,7 @@ import Link from "@appserver/components/link";
import Toast from "@appserver/components/toast";
import FieldContainer from "@appserver/components/field-container";
import SocialButton from "@appserver/components/social-button";
import PageLayout from "@appserver/common/components/PageLayout";
import Section from "@appserver/common/components/Section";
import Register from "./sub-components/register-container";
import {
getAuthProviders,
@ -450,11 +450,11 @@ const LoginForm = (props) => {
return (
<LoginFormWrapper enabledJoin={enabledJoin} isDesktop={isDesktop}>
<PageLayout>
<PageLayout.SectionBody>
<Section>
<Section.SectionBody>
<Form {...props} />
</PageLayout.SectionBody>
</PageLayout>
</Section.SectionBody>
</Section>
<Register />
</LoginFormWrapper>
);