aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/components/locationBar/LocationBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/renderer/src/components/locationBar/LocationBar.tsx')
-rw-r--r--packages/renderer/src/components/locationBar/LocationBar.tsx14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/renderer/src/components/locationBar/LocationBar.tsx b/packages/renderer/src/components/locationBar/LocationBar.tsx
index c290722..11981e9 100644
--- a/packages/renderer/src/components/locationBar/LocationBar.tsx
+++ b/packages/renderer/src/components/locationBar/LocationBar.tsx
@@ -22,8 +22,8 @@ import { styled } from '@mui/material/styles';
22import { observer } from 'mobx-react-lite'; 22import { observer } from 'mobx-react-lite';
23import React from 'react'; 23import React from 'react';
24 24
25import type RendererStore from '../../stores/RendererStore';
25import type Service from '../../stores/Service'; 26import type Service from '../../stores/Service';
26import { useStore } from '../StoreProvider';
27 27
28import ExtraButtons from './ExtraButtons'; 28import ExtraButtons from './ExtraButtons';
29import LocationTextField from './LocationTextField'; 29import LocationTextField from './LocationTextField';
@@ -44,11 +44,15 @@ const LocationBarRoot = styled('header', {
44 borderBottom: `1px solid ${theme.palette.divider}`, 44 borderBottom: `1px solid ${theme.palette.divider}`,
45})); 45}));
46 46
47function LocationBar({ service }: { service: Service }): JSX.Element { 47function LocationBar({
48 const { 48 store: {
49 settings: { showLocationBar }, 49 settings: { showLocationBar },
50 } = useStore(); 50 },
51 51 service,
52}: {
53 store: RendererStore;
54 service: Service;
55}): JSX.Element {
52 const { alwaysShowLocationBar } = service; 56 const { alwaysShowLocationBar } = service;
53 const locationBarVisible = showLocationBar || alwaysShowLocationBar; 57 const locationBarVisible = showLocationBar || alwaysShowLocationBar;
54 58