Fix demo banner: add EN/DE translations, fix navbar overlap
Banner is now in document flow instead of fixed position, so it no longer covers the navigation. Language follows the app's i18n setting.
This commit is contained in:
@@ -90,7 +90,6 @@ export default function App() {
|
||||
<TranslationProvider>
|
||||
<ToastContainer />
|
||||
{demoMode && isAuthenticated && <DemoBanner />}
|
||||
<div style={demoMode && isAuthenticated ? { paddingTop: 36 } : undefined}>
|
||||
<Routes>
|
||||
<Route path="/" element={<RootRedirect />} />
|
||||
<Route path="/login" element={<LoginPage />} />
|
||||
@@ -137,7 +136,6 @@ export default function App() {
|
||||
/>
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</TranslationProvider>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user