Skip to content

Commit ca99654

Browse files
author
lijiahao
committed
resolve eslint error
1 parent fbb3850 commit ca99654

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

renderer/components/SettingItem.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ import {
88
Slider,
99
} from "@heroui/react";
1010
import { useTranslation } from "next-i18next";
11-
import { useTheme } from "next-themes";
1211
import { useEffect, useState } from "react";
1312
import { useSettings } from "../context/userContext";
1413
import Ipc from "../lib/ipc";
1514

1615
const SettingItem = (props) => {
17-
const { theme } = useTheme();
1816
const { settings, setSettings } = useSettings();
1917
// eslint-disable-next-line react-hooks/exhaustive-deps
2018
const item = props.item || {};

renderer/pages/[locale]/settings.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useEffect, useState, useRef } from "react";
22
import { Button, Tabs, Tab, Card, CardBody, Input, addToast } from "@heroui/react";
33
import { useTranslation } from "next-i18next";
44
import { useRouter } from "next/router";
5-
import { useTheme } from "next-themes";
65
import { useSettings } from "../../context/userContext";
76

87
import Ipc from "../../lib/ipc";
@@ -24,7 +23,6 @@ function Settings() {
2423
const { t, i18n: { language: locale } } = useTranslation("settings");
2524
const { settings: localSettings, setSettings: setLocalSettings, resetSettings } = useSettings();
2625
const router = useRouter();
27-
const { theme } = useTheme();
2826

2927
console.log('locale:', locale)
3028

0 commit comments

Comments
 (0)