From 2b55770ecc6d6001ff70df411136869563076998 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 11 Dec 2021 14:36:26 +0000 Subject: [PATCH] chore(mobx): refactor into interfaces --- src/mobx/{ => interfaces}/Persistent.ts | 0 src/mobx/stores/Auth.ts | 2 +- src/mobx/stores/Draft.ts | 2 +- src/mobx/stores/Experiments.ts | 2 +- src/mobx/stores/Layout.ts | 2 +- src/mobx/stores/LocaleOptions.ts | 2 +- src/mobx/stores/NotificationOptions.ts | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/mobx/{ => interfaces}/Persistent.ts (100%) diff --git a/src/mobx/Persistent.ts b/src/mobx/interfaces/Persistent.ts similarity index 100% rename from src/mobx/Persistent.ts rename to src/mobx/interfaces/Persistent.ts diff --git a/src/mobx/stores/Auth.ts b/src/mobx/stores/Auth.ts index 36e16057..e76d9f18 100644 --- a/src/mobx/stores/Auth.ts +++ b/src/mobx/stores/Auth.ts @@ -2,7 +2,7 @@ import { makeAutoObservable, ObservableMap } from "mobx"; import { Session } from "revolt-api/types/Auth"; import { Nullable } from "revolt.js/dist/util/null"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; interface Data { sessions: Record; diff --git a/src/mobx/stores/Draft.ts b/src/mobx/stores/Draft.ts index 593fb6a3..225353b6 100644 --- a/src/mobx/stores/Draft.ts +++ b/src/mobx/stores/Draft.ts @@ -1,6 +1,6 @@ import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; interface Data { drafts: Record; diff --git a/src/mobx/stores/Experiments.ts b/src/mobx/stores/Experiments.ts index 685a2a0b..0e62d4bc 100644 --- a/src/mobx/stores/Experiments.ts +++ b/src/mobx/stores/Experiments.ts @@ -1,6 +1,6 @@ import { action, computed, makeAutoObservable, ObservableSet } from "mobx"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; /** * Union type of available experiments. diff --git a/src/mobx/stores/Layout.ts b/src/mobx/stores/Layout.ts index 9d4a7361..b1cf2793 100644 --- a/src/mobx/stores/Layout.ts +++ b/src/mobx/stores/Layout.ts @@ -1,6 +1,6 @@ import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; interface Data { lastSection?: "home" | "server"; diff --git a/src/mobx/stores/LocaleOptions.ts b/src/mobx/stores/LocaleOptions.ts index 2812b1b7..f1d4c3ec 100644 --- a/src/mobx/stores/LocaleOptions.ts +++ b/src/mobx/stores/LocaleOptions.ts @@ -2,7 +2,7 @@ import { action, computed, makeAutoObservable } from "mobx"; import { Language, Languages } from "../../context/Locale"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; interface Data { lang: Language; diff --git a/src/mobx/stores/NotificationOptions.ts b/src/mobx/stores/NotificationOptions.ts index 28ba0a03..eda1140b 100644 --- a/src/mobx/stores/NotificationOptions.ts +++ b/src/mobx/stores/NotificationOptions.ts @@ -1,7 +1,7 @@ import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; import { Channel } from "revolt-api/types/Channels"; -import Persistent from "../Persistent"; +import Persistent from "../interfaces/Persistent"; /** * Possible notification states.