Skip to content

Commit 6be7c68

Browse files
Merge pull request #106 from lordaimer/fix/window-apptitle
fix(web-app): move AppProviders to main.tsx to fix appTitle translation in titlebar failing on linux
2 parents c4222bb + 04cf844 commit 6be7c68

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

web-app/src/components/layouts/RootLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Outlet } from 'react-router-dom'
2-
import { AppProviders } from './AppProviders'
2+
33
import { AppFooter } from '../AppFooter'
44
import { TitleBar } from '../TitleBar'
55
import { useTranslation } from '@/i18n'
@@ -8,7 +8,7 @@ import { AppUpdater } from '../common/AppUpdater'
88
export function RootLayout() {
99
const { t } = useTranslation('common')
1010
return (
11-
<AppProviders>
11+
<>
1212
<AppUpdater />
1313
<main className="h-screen flex flex-col relative glass-background select-none bg-background">
1414
{IS_LINUX && <TitleBar title={t('appTitle')} />}
@@ -19,6 +19,6 @@ export function RootLayout() {
1919
<Outlet />
2020
<AppFooter />
2121
</main>
22-
</AppProviders>
22+
</>
2323
)
2424
}

web-app/src/main.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import './index.css'
55
import './i18n'
66
import { initializePlatformStyles } from './lib/platformStyles'
77
import { routers } from './routes/routes.tsx'
8+
import { AppProviders } from './components/layouts/AppProviders'
89

910
initializePlatformStyles()
1011

1112
ReactDOM.createRoot(document.getElementById('root')!).render(
1213
<React.StrictMode>
13-
<RouterProvider router={routers} />,
14+
<AppProviders>
15+
<RouterProvider router={routers} />
16+
</AppProviders>
1417
</React.StrictMode>
1518
)

0 commit comments

Comments
 (0)