11import { RemixApp } from '@remix-ui/app'
22import axios from 'axios'
33import React , { useState , useEffect , useRef } from 'react'
4- import { FormattedMessage , useIntl } from 'react-intl'
54import { useTracking , TrackingProvider } from '../contexts/TrackingContext'
65import { TrackingFunction } from '../utils/TrackingFunction'
76import * as packageJson from '../../../../../package.json'
@@ -28,7 +27,6 @@ export const Preload = (props: PreloadProps) => {
2827 const [ showDownloader , setShowDownloader ] = useState < boolean > ( false )
2928 const containerRef = useRef < HTMLDivElement > ( null )
3029 const mainRef = useRef < HTMLDivElement > ( null )
31- const tipsRef = useRef < HTMLDivElement > ( null )
3230 const remixFileSystems = useRef < fileSystems > ( new fileSystems ( ) )
3331 const remixIndexedDB = useRef < fileSystem > ( new indexedDBFileSystem ( ) )
3432 const localStorageFileSystem = useRef < fileSystem > ( new localStorageFS ( ) )
@@ -113,7 +111,7 @@ export const Preload = (props: PreloadProps) => {
113111 }
114112 async function loadStorage ( ) {
115113 ; ( await remixFileSystems . current . addFileSystem ( remixIndexedDB . current ) ) || trackMatomoEvent ?.( { category : 'Storage' , action : 'error' , name : 'indexedDB not supported' , isClick : false } )
116- ; ( await remixFileSystems . current . addFileSystem ( localStorageFileSystem . current ) ) || trackMatomoEvent ?.( { category : 'Storage' , action : 'error' , name : 'localstorage not supported' , isClick : false } )
114+ ; ( await remixFileSystems . current . addFileSystem ( localStorageFileSystem . current ) ) || trackMatomoEvent ?.( { category : 'Storage' , action : 'error' , name : 'localstorage not supported' , isClick : false } )
117115 await testmigration ( )
118116 remixIndexedDB . current . loaded && ( await remixIndexedDB . current . checkWorkspaces ( ) )
119117 localStorageFileSystem . current . loaded && ( await localStorageFileSystem . current . checkWorkspaces ( ) )
@@ -137,7 +135,6 @@ export const Preload = (props: PreloadProps) => {
137135 console . log ( e )
138136 }
139137
140-
141138 return ( ) => {
142139 abortController . abort ( ) ;
143140 } ;
@@ -206,10 +203,10 @@ export const Preload = (props: PreloadProps) => {
206203 ) : null }
207204 </ div >
208205 < div className = "preload-bottom opt-out" >
209- { tip && < div className = 'remix_tips text-center mt-3' >
210- < div > < b > DID YOU KNOW</ b > </ div >
211- < span > { tip } </ span >
212- </ div > }
206+ { tip && < div className = 'remix_tips text-center mt-3' >
207+ < div > < b > DID YOU KNOW</ b > </ div >
208+ < span > { tip } </ span >
209+ </ div > }
213210 </ div >
214211 </ div >
215212 </ >
0 commit comments