refactor: remove unused safe area utility and simplify layout structure
This commit is contained in:
@@ -11,7 +11,6 @@ import { AuthenticationProvider } from './service/AuthenticationService'
|
|||||||
import { useNotification } from './service/NotificationProvider'
|
import { useNotification } from './service/NotificationProvider'
|
||||||
import { apiManager } from './utils/TokenManager'
|
import { apiManager } from './utils/TokenManager'
|
||||||
|
|
||||||
import { getSafeBottomPadding } from './utils/SafeAreaUtils'
|
|
||||||
import NetworkBanner from './views/components/NetworkBanner'
|
import NetworkBanner from './views/components/NetworkBanner'
|
||||||
|
|
||||||
const add = className => {
|
const add = className => {
|
||||||
@@ -89,7 +88,7 @@ const AppContent = () => {
|
|||||||
}, [needRefresh, showNotification, updateServiceWorker, setNeedRefresh])
|
}, [needRefresh, showNotification, updateServiceWorker, setNeedRefresh])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ paddingBottom: getSafeBottomPadding(2) }}>
|
<div>
|
||||||
<ImpersonateUserProvider>
|
<ImpersonateUserProvider>
|
||||||
<NavBar />
|
<NavBar />
|
||||||
<PageTransition>
|
<PageTransition>
|
||||||
@@ -133,13 +132,13 @@ function App() {
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ paddingBottom: getSafeBottomPadding(2) }}>
|
<>
|
||||||
<NetworkBanner />
|
<NetworkBanner />
|
||||||
|
|
||||||
<AuthenticationProvider>
|
<AuthenticationProvider>
|
||||||
<AppContent />
|
<AppContent />
|
||||||
</AuthenticationProvider>
|
</AuthenticationProvider>
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user