X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fhome%2Fsetup.tsx;h=7b3d4c27ea9b072e968b4e2ce63f2654346b6280;hb=b7ec7ae3110c560968e0cb24a32f1fe9166eec29;hp=966e6d492fc5e202df2c9abeeb1094b89f5260f2;hpb=dc439b8deea60a6db8e477b3f0ec3f00b0e4661d;p=lemmy-ui.git diff --git a/src/shared/components/home/setup.tsx b/src/shared/components/home/setup.tsx index 966e6d4..7b3d4c2 100644 --- a/src/shared/components/home/setup.tsx +++ b/src/shared/components/home/setup.tsx @@ -10,6 +10,7 @@ import { import { I18NextService, UserService } from "../../services"; import { HttpService, RequestState } from "../../services/HttpService"; import { Spinner } from "../common/icon"; +import PasswordInput from "../common/password-input"; import { SiteForm } from "./site-form"; interface State { @@ -63,7 +64,9 @@ export class Setup extends Component {
-

{I18NextService.i18n.t("lemmy_instance_setup")}

+

+ {I18NextService.i18n.t("lemmy_instance_setup")} +

{!this.state.doneRegisteringUser ? ( this.registerUser() ) : ( @@ -84,7 +87,7 @@ export class Setup extends Component { registerUser() { return (
-
{I18NextService.i18n.t("setup_admin")}
+

{I18NextService.i18n.t("setup_admin")}

-
- -
- -
+
+
-
- -
- -
+
+
@@ -204,7 +187,7 @@ export class Setup extends Component { if (i.state.registerRes.state == "success") { const data = i.state.registerRes.data; - UserService.Instance.login(data); + UserService.Instance.login({ res: data }); i.setState({ doneRegisteringUser: true }); } }