From 5e49353f7b85c427e13be5dd094b0886802938c2 Mon Sep 17 00:00:00 2001 From: bangnokia Date: Wed, 15 Jun 2022 17:51:27 +0700 Subject: [PATCH] refactor --- src/components/Mailbox.tsx | 3 ++- src/themes.ts | 12 ------------ src/utils/utils.ts | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 src/themes.ts diff --git a/src/components/Mailbox.tsx b/src/components/Mailbox.tsx index b8daddd..7911109 100644 --- a/src/components/Mailbox.tsx +++ b/src/components/Mailbox.tsx @@ -1,5 +1,6 @@ import MailItem from "./MailItem"; -import useStore, { Email } from "../store"; +import useStore from "../store"; +import { Email } from "../types"; import shallow from "zustand/shallow"; import ButtonAutoOpenNewEmail from "./buttons/ButtonAutoOpenNewEmail"; import ButtonDeleteEmails from "./buttons/ButtonDeleteEmails"; diff --git a/src/themes.ts b/src/themes.ts deleted file mode 100644 index 5005150..0000000 --- a/src/themes.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ColorScheme, colors } from "@vechaiui/react"; -export const bee: ColorScheme = { - id: "bee", - type: "light", - colors: { - bg: { base: colors.warmGray["100"], fill: colors.warmGray["100"] }, - text: { foreground: colors.warmGray["900"], muted: colors.warmGray["700"] }, - primary: colors.amber, - neutral: colors.warmGray, - danger: colors.red, - }, -}; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index d97b6b7..960c5b3 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,4 +1,4 @@ -import { Email } from "../store"; +import { Email } from "../types"; export function makeExcerpt(email: Email) { let excerpt = "";