@@ -31,7 +31,6 @@ import { WelcomeLayout } from '../layouts/WelcomeLayout/WelcomeLayout';
31
31
import { DeviceCompromised } from '../SecurityCheck/DeviceCompromised' ;
32
32
import { RouterAppWithParams } from '../../../constants/suite/routes' ;
33
33
import { useReportDeviceCompromised } from '../SecurityCheck/useReportDeviceCompromised' ;
34
- import { TrafficLightDraggableWindowHeader } from '../TrafficLightOffset' ;
35
34
36
35
const ROUTES_TO_SKIP_FIRMWARE_CHECK : RouterAppWithParams [ 'app' ] [ ] = [
37
36
'settings' ,
@@ -51,7 +50,9 @@ const getFullscreenApp = (route: AppState['router']['route']): FC | undefined =>
51
50
}
52
51
} ;
53
52
54
- const usePreloaderData = ( { children } : PropsWithChildren ) => {
53
+ // Preloader is a top level wrapper used in _app.tsx.
54
+ // Decides which content should be displayed basing on route and prerequisites.
55
+ export const Preloader = ( { children } : PropsWithChildren ) => {
55
56
const lifecycle = useSelector ( state => state . suite . lifecycle ) ;
56
57
const isTransportInitialized = useSelector ( selectIsTransportInitialized ) ;
57
58
const router = useSelector ( state => state . router ) ;
@@ -147,16 +148,3 @@ const usePreloaderData = ({ children }: PropsWithChildren) => {
147
148
// everything is set.
148
149
return < SuiteLayout > { children } </ SuiteLayout > ;
149
150
} ;
150
-
151
- // Preloader is a top level wrapper used in _app.tsx.
152
- // Decides which content should be displayed basing on route and prerequisites.
153
- export const Preloader = ( props : PropsWithChildren ) => {
154
- const renderedComponent = usePreloaderData ( props ) ;
155
-
156
- return (
157
- < >
158
- < TrafficLightDraggableWindowHeader />
159
- { renderedComponent }
160
- </ >
161
- ) ;
162
- } ;
0 commit comments