mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
refactor: remove extra types
This commit is contained in:
parent
7c6f068d15
commit
e490a1da84
1 changed files with 1 additions and 6 deletions
|
|
@ -35,12 +35,7 @@ export function Menu() {
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
const [modals, setModals] = useState<{
|
const [modals, setModals] = useState(initial);
|
||||||
notepad: boolean;
|
|
||||||
pomodoro: boolean;
|
|
||||||
presets: boolean;
|
|
||||||
shareLink: boolean;
|
|
||||||
}>(initial);
|
|
||||||
|
|
||||||
const close = useCallback((name: string) => {
|
const close = useCallback((name: string) => {
|
||||||
setModals(prev => ({ ...prev, [name]: false }));
|
setModals(prev => ({ ...prev, [name]: false }));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue