diff --git a/src/renderer/appbar/appbar.tsx b/src/renderer/appbar/appbar.tsx index e0d460a..bf654d7 100644 --- a/src/renderer/appbar/appbar.tsx +++ b/src/renderer/appbar/appbar.tsx @@ -25,6 +25,7 @@ const useStyles = createUseStyles({ interface AppBarProps { onItemClick: (key: string) => void + onItemRightClick: (key: string) => void } export function AppBar(props: AppBarProps) { const classes = useStyles() @@ -36,6 +37,7 @@ export function AppBar(props: AppBarProps) { itemKey={entry.key} icon={entry.icon} onClick={() => {props.onItemClick(entry.key)}} + onRightClick={() => {props.onItemRightClick(entry.key)}} /> } diff --git a/src/renderer/appbar/button.tsx b/src/renderer/appbar/button.tsx index 3b5e9ce..f395bbf 100644 --- a/src/renderer/appbar/button.tsx +++ b/src/renderer/appbar/button.tsx @@ -32,12 +32,13 @@ interface AppBarButtonProps { itemKey: string icon: React.ReactNode onClick?: () => void + onRightClick?: () => void } export function AppBarButton(props: AppBarButtonProps) { const classes = useStyles() const LNG = useI18n() - return