diff options
Diffstat (limited to 'packages/renderer/src/components/locationBar/UrlOverlay.tsx')
-rw-r--r-- | packages/renderer/src/components/locationBar/UrlOverlay.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/renderer/src/components/locationBar/UrlOverlay.tsx b/packages/renderer/src/components/locationBar/UrlOverlay.tsx index f7a3c4c..d590709 100644 --- a/packages/renderer/src/components/locationBar/UrlOverlay.tsx +++ b/packages/renderer/src/components/locationBar/UrlOverlay.tsx | |||
@@ -21,6 +21,7 @@ | |||
21 | import { styled } from '@mui/material/styles'; | 21 | import { styled } from '@mui/material/styles'; |
22 | import React from 'react'; | 22 | import React from 'react'; |
23 | 23 | ||
24 | import getAlertColor from './getAlertColor'; | ||
24 | import type { SplitResult } from './splitUrl'; | 25 | import type { SplitResult } from './splitUrl'; |
25 | 26 | ||
26 | const PrimaryFragment = styled('span', { | 27 | const PrimaryFragment = styled('span', { |
@@ -28,7 +29,7 @@ const PrimaryFragment = styled('span', { | |||
28 | slot: 'PrimaryFragment', | 29 | slot: 'PrimaryFragment', |
29 | shouldForwardProp: (prop) => prop !== 'alert', | 30 | shouldForwardProp: (prop) => prop !== 'alert', |
30 | })<{ alert: boolean }>(({ theme, alert }) => ({ | 31 | })<{ alert: boolean }>(({ theme, alert }) => ({ |
31 | color: alert ? theme.palette.error.main : theme.palette.text.primary, | 32 | color: getAlertColor(theme, alert), |
32 | })); | 33 | })); |
33 | 34 | ||
34 | const SecondaryFragment = styled('span', { | 35 | const SecondaryFragment = styled('span', { |