mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
chore(refactor): delete context/revoltjs folder
This commit is contained in:
@@ -4,9 +4,8 @@ import { Text } from "preact-i18n";
|
||||
|
||||
import { ModalForm } from "@revoltchat/ui";
|
||||
|
||||
import { mapError } from "../../../context/revoltjs/util";
|
||||
|
||||
import { useClient } from "../../client/ClientController";
|
||||
import { mapError } from "../../client/jsx/error";
|
||||
import { ModalProps } from "../types";
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,8 +7,7 @@ import { ModalForm } from "@revoltchat/ui";
|
||||
|
||||
import { noopAsync } from "../../../lib/js";
|
||||
|
||||
import { takeError } from "../../../context/revoltjs/util";
|
||||
|
||||
import { takeError } from "../../client/jsx/error";
|
||||
import { modalController } from "../ModalController";
|
||||
import { ModalProps } from "../types";
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@ import { Text } from "preact-i18n";
|
||||
|
||||
import { ModalForm } from "@revoltchat/ui";
|
||||
|
||||
import { mapError } from "../../../context/revoltjs/util";
|
||||
|
||||
import { useClient } from "../../client/ClientController";
|
||||
import { mapError } from "../../client/jsx/error";
|
||||
import { ModalProps } from "../types";
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,10 +7,9 @@ import { Category, Error, Modal } from "@revoltchat/ui";
|
||||
|
||||
import { noopTrue } from "../../../lib/js";
|
||||
|
||||
import { takeError } from "../../../context/revoltjs/util";
|
||||
|
||||
import FormField from "../../../pages/login/FormField";
|
||||
import { useClient } from "../../client/ClientController";
|
||||
import { takeError } from "../../client/jsx/error";
|
||||
import { ModalProps } from "../types";
|
||||
|
||||
interface FormInputs {
|
||||
|
||||
@@ -19,8 +19,7 @@ import {
|
||||
|
||||
import { noop } from "../../../lib/js";
|
||||
|
||||
import { FileUploader } from "../../../context/revoltjs/FileUploads";
|
||||
|
||||
import { FileUploader } from "../../client/jsx/legacy/FileUploads";
|
||||
import { ModalProps } from "../types";
|
||||
|
||||
const Preview = styled(Centred)`
|
||||
|
||||
@@ -9,10 +9,10 @@ import { Category, Modal } from "@revoltchat/ui";
|
||||
import { noopTrue } from "../../../../lib/js";
|
||||
|
||||
import { I18nError } from "../../../../context/Locale";
|
||||
import { takeError } from "../../../../context/revoltjs/util";
|
||||
|
||||
import FormField from "../../../../pages/login/FormField";
|
||||
import { useClient } from "../../../client/ClientController";
|
||||
import { takeError } from "../../../client/jsx/error";
|
||||
import { modalController } from "../../ModalController";
|
||||
import { ModalProps } from "../../types";
|
||||
|
||||
|
||||
@@ -6,11 +6,10 @@ import { useState } from "preact/hooks";
|
||||
|
||||
import { Button, Preloader } from "@revoltchat/ui";
|
||||
|
||||
import { takeError } from "../../../../context/revoltjs/util";
|
||||
|
||||
import wideSVG from "/assets/wide.svg";
|
||||
|
||||
import FormField from "../../../../pages/login/FormField";
|
||||
import { takeError } from "../../../client/jsx/error";
|
||||
import { ModalProps } from "../../types";
|
||||
|
||||
interface FormInputs {
|
||||
|
||||
Reference in New Issue
Block a user