mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 15:44:21 +00:00
Fix typescript type check issues
This commit is contained in:
@@ -20,8 +20,6 @@ const render = (ui: React.ReactElement) => {
|
||||
};
|
||||
|
||||
describe('AppearanceSettings', () => {
|
||||
const mockOnThemeChange = vi.fn();
|
||||
|
||||
beforeEach(async () => {
|
||||
vi.clearAllMocks();
|
||||
const { useTheme } = await import('../../../contexts/ThemeContext');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useReducer, useEffect, useCallback, useRef } from 'react';
|
||||
import React, { useReducer, useEffect, useCallback } from 'react';
|
||||
import {
|
||||
Modal,
|
||||
Badge,
|
||||
@@ -18,7 +18,7 @@ import { useModalContext } from '../../../contexts/ModalContext';
|
||||
import DangerZoneSettings from './DangerZoneSettings';
|
||||
import AccordionControl from '../AccordionControl';
|
||||
import {
|
||||
Theme,
|
||||
type Theme,
|
||||
type Workspace,
|
||||
type SettingsAction,
|
||||
SettingsActionType,
|
||||
@@ -72,7 +72,8 @@ function settingsReducer(
|
||||
}
|
||||
|
||||
const WorkspaceSettings: React.FC = () => {
|
||||
const { currentWorkspace, updateSettings, updateColorScheme, colorScheme } = useWorkspace();
|
||||
const { currentWorkspace, updateSettings, updateColorScheme, colorScheme } =
|
||||
useWorkspace();
|
||||
const { settingsModalVisible, setSettingsModalVisible } = useModalContext();
|
||||
const [state, dispatch] = useReducer(settingsReducer, initialState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user