diff options
Diffstat (limited to 'packages/renderer/src/components/locationBar/LocationBar.tsx')
-rw-r--r-- | packages/renderer/src/components/locationBar/LocationBar.tsx | 14 |
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'; | |||
22 | import { observer } from 'mobx-react-lite'; | 22 | import { observer } from 'mobx-react-lite'; |
23 | import React from 'react'; | 23 | import React from 'react'; |
24 | 24 | ||
25 | import type RendererStore from '../../stores/RendererStore'; | ||
25 | import type Service from '../../stores/Service'; | 26 | import type Service from '../../stores/Service'; |
26 | import { useStore } from '../StoreProvider'; | ||
27 | 27 | ||
28 | import ExtraButtons from './ExtraButtons'; | 28 | import ExtraButtons from './ExtraButtons'; |
29 | import LocationTextField from './LocationTextField'; | 29 | import 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 | ||
47 | function LocationBar({ service }: { service: Service }): JSX.Element { | 47 | function 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 | ||