refactor: remove extra types

This commit is contained in:
MAZE 2024-04-25 21:21:21 +03:30
parent 7c6f068d15
commit e490a1da84

View file

@ -35,12 +35,7 @@ export function Menu() {
[],
);
const [modals, setModals] = useState<{
notepad: boolean;
pomodoro: boolean;
presets: boolean;
shareLink: boolean;
}>(initial);
const [modals, setModals] = useState(initial);
const close = useCallback((name: string) => {
setModals(prev => ({ ...prev, [name]: false }));