chore(refactor): move and re-organise types folder

This commit is contained in:
Paul Makles
2022-06-10 14:11:38 +01:00
parent 67de7dbd79
commit a5e5f3ea0b
53 changed files with 78 additions and 102 deletions

View File

@@ -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";

View File

@@ -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%;

View File

@@ -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()]);

View File

@@ -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";

View File

@@ -3,8 +3,6 @@ import { useContext } from "preact/hooks";
import { Dictionary } from "../context/Locale";
import { Children } from "../types/Preact";
interface Fields {
[key: string]: Children;
}