mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 02:05:28 +00:00
Add bottom navigation and locale selector.
This commit is contained in:
@@ -6,8 +6,8 @@ import { useForm } from "react-hook-form";
|
||||
import { MailProvider } from "./MailProvider";
|
||||
import { useContext, useState } from "preact/hooks";
|
||||
import { CheckCircle, Mail } from "@styled-icons/feather";
|
||||
import { CaptchaBlock, CaptchaProps } from "./CaptchaBlock";
|
||||
import { takeError } from "../../../context/revoltjs/util";
|
||||
import { CaptchaBlock, CaptchaProps } from "./CaptchaBlock";
|
||||
import { AppContext } from "../../../context/revoltjs/RevoltClient";
|
||||
|
||||
import FormField from "../FormField";
|
||||
@@ -15,6 +15,8 @@ import Button from "../../../components/ui/Button";
|
||||
import Overline from "../../../components/ui/Overline";
|
||||
import Preloader from "../../../components/ui/Preloader";
|
||||
|
||||
import wideSVG from '../../../assets/wide.svg';
|
||||
|
||||
interface Props {
|
||||
page: "create" | "login" | "send_reset" | "reset" | "resend";
|
||||
callback: (fields: {
|
||||
@@ -140,6 +142,7 @@ export function Form({ page, callback }: Props) {
|
||||
|
||||
return (
|
||||
<div className={styles.form}>
|
||||
<img src={wideSVG} />
|
||||
<form onSubmit={handleSubmit(onSubmit) as any}>
|
||||
{page !== "reset" && (
|
||||
<FormField
|
||||
|
||||
Reference in New Issue
Block a user