diff --git a/src/ui/pages/Login.tsx b/src/ui/pages/Login.tsx index 6770a29..c9a6acd 100644 --- a/src/ui/pages/Login.tsx +++ b/src/ui/pages/Login.tsx @@ -1,110 +1,10 @@ -import { Button } from "../elements/Button"; import { Component, JSX } from "preact"; import { DefaultPageProps } from "../../types/DefaultPageProps"; -import { Form } from "../elements/Form"; -import { Margin } from "../elements/Margin"; -import { MarginInline } from "../elements/MarginInline"; import { PageTitle } from "../elements/PageTitle"; -import { route } from "preact-router"; -import { setErrorText } from "../../pageUtils"; +import { TokenLoginForm } from "./Login_Token"; +import { UsernameLoginForm } from "./Login_Username"; import i18next from "i18next"; -export class TokenLoginForm extends Component { - constructor() { - super(); - } - - render(): JSX.Element { - return ( -
this.onSubmit(data)}> - - - - -