From 92459e7a4a3c44a085b4d0aaa69296278e6ddbe8 Mon Sep 17 00:00:00 2001 From: yude Date: Mon, 25 Mar 2024 04:11:37 +0000 Subject: [PATCH] Delete unused imports --- src/components/LanguageMenu.tsx | 2 +- src/components/Theme.tsx | 2 -- src/i18n.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/LanguageMenu.tsx b/src/components/LanguageMenu.tsx index eb09f7d..c9ffba2 100644 --- a/src/components/LanguageMenu.tsx +++ b/src/components/LanguageMenu.tsx @@ -1,7 +1,7 @@ import { useTranslation } from "react-i18next"; export default function LanguageMenu() { - const { t, i18n: { changeLanguage, language } } = useTranslation(); + const { i18n: { changeLanguage, language } } = useTranslation(); return ( <> diff --git a/src/components/Theme.tsx b/src/components/Theme.tsx index 8dedb67..8fca7bd 100644 --- a/src/components/Theme.tsx +++ b/src/components/Theme.tsx @@ -1,7 +1,5 @@ import { atom, useRecoilState, useSetRecoilState } from "recoil"; import { useEffect } from "react"; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faSun, faMoon } from '@fortawesome/free-solid-svg-icons' export type Theme = "light" | "dark"; diff --git a/src/i18n.ts b/src/i18n.ts index ab34063..ae58062 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -1,5 +1,5 @@ import i18n from "i18next"; -import { useTranslation, initReactI18next } from "react-i18next"; +import { initReactI18next } from "react-i18next"; import ja from './locales/ja.json' import en from './locales/en.json' import zhCN from './locales/zh-cn.json'