mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-04-28 08:10:36 +00:00
feat(@ui): migrate category / overline and header
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { useHistory, useParams } from "react-router-dom";
|
||||
|
||||
import { useContext, useEffect, useState } from "preact/hooks";
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
import { Preloader } from "@revoltchat/ui";
|
||||
import { Category, Preloader } from "@revoltchat/ui";
|
||||
|
||||
import { useApplicationState } from "../../../mobx/State";
|
||||
|
||||
import { I18nError } from "../../../context/Locale";
|
||||
import { takeError } from "../../../context/revoltjs/util";
|
||||
|
||||
import Overline from "../../../components/ui/Overline";
|
||||
import { Form } from "./Form";
|
||||
|
||||
export function FormResend() {
|
||||
@@ -41,7 +41,9 @@ export function FormVerify() {
|
||||
}, []);
|
||||
|
||||
return error ? (
|
||||
<Overline type="error" error={error} />
|
||||
<Category>
|
||||
<I18nError error={error} />
|
||||
</Category>
|
||||
) : (
|
||||
<Preloader type="ring" />
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user