[Glitch] Convert dropdown_menu state to Typescript

Port 4b7bc1f07c to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2023-09-22 18:18:46 +02:00
committed by Claire
parent b2d67fbe33
commit 919ed0e469
9 changed files with 69 additions and 41 deletions

View File

@@ -0,0 +1,11 @@
import { createAction } from '@reduxjs/toolkit';
export const openDropdownMenu = createAction<{
id: string;
keyboard: boolean;
scrollKey: string;
}>('dropdownMenu/open');
export const closeDropdownMenu = createAction<{ id: string }>(
'dropdownMenu/close',
);