Skip to content

Commit 4e6559c

Browse files
committed
feat: Remove identical slots from More actions menu
1 parent f1bdea2 commit 4e6559c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

remove-some-parts-from-the-default-toolbar/RemovePartsDefaultToolbarDefaultLayoutExample.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ const RemovePartsDefaultToolbarDefaultLayoutExample: React.FC<RemovePartsDefault
1616
const transform: TransformToolbarSlot = (slot: ToolbarSlot) => ({
1717
...slot,
1818
Download: () => <></>,
19+
DownloadMenuItem: () => <></>,
1920
EnterFullScreen: () => <></>,
21+
EnterFullScreenMenuItem: () => <></>,
2022
SwitchTheme: () => <></>,
23+
SwitchThemeMenuItem: () => <></>,
2124
});
2225

2326
const renderToolbar = (Toolbar: (props: ToolbarProps) => React.ReactElement) => (

remove-some-parts-from-the-default-toolbar/RemovePartsDefaultToolbarExample.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ const RemovePartsDefaultToolbarExample: React.FC<RemovePartsDefaultToolbarExampl
1717
const transform: TransformToolbarSlot = (slot: ToolbarSlot) => ({
1818
...slot,
1919
Download: () => <></>,
20+
DownloadMenuItem: () => <></>,
2021
EnterFullScreen: () => <></>,
22+
EnterFullScreenMenuItem: () => <></>,
2123
SwitchTheme: () => <></>,
24+
SwitchThemeMenuItem: () => <></>,
2225
});
2326

2427
return (

0 commit comments

Comments
 (0)