Merge manga action menus (#527)

This commit is contained in:
schroda
2023-12-30 14:26:50 +01:00
committed by GitHub
parent a3a52064cc
commit ecea80f41e
8 changed files with 225 additions and 249 deletions

View File

@@ -16,7 +16,7 @@ import { TranslationKey } from '@/typings.ts';
import { Menu } from '@/components/manga/Menu.tsx';
interface SelectionFABProps {
children: (handleClose: () => void) => JSX.Element;
children: (handleClose: () => void, setHideMenu: (hide: boolean) => void) => JSX.Element;
selectedItemsCount: number;
title: TranslationKey;
}
@@ -53,7 +53,7 @@ export const SelectionFAB: React.FC<SelectionFABProps> = ({ children, selectedIt
'aria-labelledby': 'selectionMenuButton',
}}
>
{(onClose) => children(onClose)}
{(onClose, setHideMenu) => children(onClose, setHideMenu)}
</Menu>
</>
)}