aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/components/locationBar/ExtraButtons.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/renderer/src/components/locationBar/ExtraButtons.tsx')
-rw-r--r--packages/renderer/src/components/locationBar/ExtraButtons.tsx10
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/renderer/src/components/locationBar/ExtraButtons.tsx b/packages/renderer/src/components/locationBar/ExtraButtons.tsx
index ef90199..4d4c3c4 100644
--- a/packages/renderer/src/components/locationBar/ExtraButtons.tsx
+++ b/packages/renderer/src/components/locationBar/ExtraButtons.tsx
@@ -27,11 +27,7 @@ import { useTranslation } from 'react-i18next';
27 27
28import type Service from '../../stores/Service'; 28import type Service from '../../stores/Service';
29 29
30function ExtraButtons({ 30function ExtraButtons({ service }: { service: Service }): JSX.Element {
31 service,
32}: {
33 service: Service | undefined;
34}): JSX.Element {
35 const { t } = useTranslation(undefined, { 31 const { t } = useTranslation(undefined, {
36 keyPrefix: 'toolbar', 32 keyPrefix: 'toolbar',
37 }); 33 });
@@ -40,8 +36,8 @@ function ExtraButtons({
40 <Box display="flex"> 36 <Box display="flex">
41 <IconButton 37 <IconButton
42 aria-label={t('openInBrowser')} 38 aria-label={t('openInBrowser')}
43 disabled={service?.currentUrl === undefined} 39 disabled={service.currentUrl === undefined}
44 onClick={() => service?.openCurrentURLInExternalBrowser()} 40 onClick={() => service.openCurrentURLInExternalBrowser()}
45 > 41 >
46 <IconOpenInBrowser /> 42 <IconOpenInBrowser />
47 </IconButton> 43 </IconButton>