mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
chore(refactor): move and re-organise types folder
This commit is contained in:
@@ -30,7 +30,6 @@ import CMNotifications from "./contextmenu/CMNotifications";
|
||||
|
||||
import Tooltip from "../components/common/Tooltip";
|
||||
import UserStatus from "../components/common/user/UserStatus";
|
||||
import { Children } from "../types/Preact";
|
||||
import { internalEmit } from "./eventEmitter";
|
||||
import { getRenderer } from "./renderer/Singleton";
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import styled from "styled-components/macro";
|
||||
import { useEffect, useErrorBoundary, useState } from "preact/hooks";
|
||||
|
||||
import { GIT_REVISION } from "../revision";
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
const CrashContainer = styled.div`
|
||||
height: 100%;
|
||||
|
||||
@@ -6,8 +6,6 @@ import { useApplicationState } from "../mobx/State";
|
||||
|
||||
import { AppContext } from "../context/revoltjs/RevoltClient";
|
||||
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
export default observer(({ children }: { children: Children }) => {
|
||||
const config = useApplicationState().config;
|
||||
const client = useMemo(() => config.createClient(), [config.get()]);
|
||||
|
||||
@@ -20,8 +20,6 @@ import { LineDivider } from "@revoltchat/ui";
|
||||
import { useApplicationState } from "../../mobx/State";
|
||||
import { NotificationState } from "../../mobx/stores/NotificationOptions";
|
||||
|
||||
import { Children } from "../../types/Preact";
|
||||
|
||||
interface Action {
|
||||
key: string;
|
||||
type: "channel" | "server";
|
||||
|
||||
@@ -3,8 +3,6 @@ import { useContext } from "preact/hooks";
|
||||
|
||||
import { Dictionary } from "../context/Locale";
|
||||
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
interface Fields {
|
||||
[key: string]: Children;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user