diff --git a/packages/web/src/javascripts/Components/Footer/QuickSettingsButton.tsx b/packages/web/src/javascripts/Components/Footer/QuickSettingsButton.tsx index ae9a79aba..7763f1e11 100644 --- a/packages/web/src/javascripts/Components/Footer/QuickSettingsButton.tsx +++ b/packages/web/src/javascripts/Components/Footer/QuickSettingsButton.tsx @@ -8,12 +8,14 @@ import Icon from '../Icon/Icon' import Popover from '../Popover/Popover' import QuickSettingsMenu from '../QuickSettingsMenu/QuickSettingsMenu' import StyledTooltip from '../StyledTooltip/StyledTooltip' +import RoundIconButton from '../Button/RoundIconButton' type Props = { application: WebApplication + isMobileNavigation?: boolean } -const QuickSettingsButton = ({ application }: Props) => { +const QuickSettingsButton = ({ application, isMobileNavigation = false }: Props) => { const buttonRef = useRef(null) const commandService = useCommandService() @@ -32,15 +34,19 @@ const QuickSettingsButton = ({ application }: Props) => { return ( <> - + {isMobileNavigation ? ( + + ) : ( + + )} { +const VaultSelectionButton = ({ isMobileNavigation = false }: { isMobileNavigation?: boolean }) => { const application = useApplication() const buttonRef = useRef(null) const exclusivelyShownVault = application.vaultDisplayService.exclusivelyShownVault @@ -22,22 +23,35 @@ const VaultSelectionButton = () => { return ( <> - + + + )} (({ application, className, label="Go to preferences" icon="tune" /> - { - application.quickSettingsMenuController.toggle() - }} - label="Go to quick settings menu" - icon="themes" - /> - {featureTrunkVaultsEnabled() && ( - { - application.vaultSelectionController.toggle() - }} - label="Go to vaults menu" - icon="safe-square" - /> - )} + + {featureTrunkVaultsEnabled() && } {children}