File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 66} from '@mui/material/styles'
77import { ThemeProvider as ChakraThemeProvider } from '@opengovsg/design-system-react'
88
9- import { useDefaultZoom } from '@/hooks/useGovtBrowser'
109import materialTheme from '@/styles/theme'
1110
1211import { theme as chakraTheme } from '../../theme'
@@ -20,7 +19,6 @@ const ThemeProvider = ({
2019} : ThemeProviderProps ) : React . ReactElement => {
2120 // This is a workaround to fix the issue of toasts appearing behind modal overlays
2221 const ref = useRef < HTMLDivElement > ( null )
23- useDefaultZoom ( )
2422 return (
2523 < ChakraThemeProvider
2624 theme = { chakraTheme }
Original file line number Diff line number Diff line change 66 * We check for existence of "menlo-view.menlosecurity.com" in window.name to determine if we should prepend the proxy url
77 */
88
9- import { useCallback , useEffect } from 'react'
9+ import { useCallback } from 'react'
1010
1111const isGovtBrowser = window . name ?. includes ( 'menlo-view.menlosecurity.com' )
1212
@@ -21,14 +21,4 @@ const useProxyUrl = () => {
2121 return { createProxiedUrl }
2222}
2323
24- const useDefaultZoom = ( ) => {
25- useEffect ( ( ) => {
26- if ( ! isGovtBrowser ) {
27- return
28- }
29- // Set html font size to 14px
30- document . documentElement . style . fontSize = '14px'
31- } , [ ] )
32- }
33-
34- export { useDefaultZoom , useProxyUrl }
24+ export { useProxyUrl }
You can’t perform that action at this time.
0 commit comments