react-router optimizations

This commit is contained in:
proddy
2026-06-20 10:26:00 +02:00
parent 92d63d6f5d
commit 39b02591d9
12 changed files with 217 additions and 262 deletions
+5 -2
View File
@@ -1,8 +1,9 @@
import { memo, useEffect, useState } from 'react';
import { Outlet } from 'react-router';
import AppRouting from 'AppRouting';
import CustomTheme from 'CustomTheme';
import { Toaster } from 'components/toast';
import { Authentication } from 'contexts/authentication';
import TypesafeI18n from 'i18n/i18n-react';
import type { Locales } from 'i18n/i18n-types';
import { loadLocaleAsync } from 'i18n/i18n-util.async';
@@ -43,7 +44,9 @@ const App = memo(() => {
return (
<TypesafeI18n locale={locale}>
<CustomTheme>
<AppRouting />
<Authentication>
<Outlet />
</Authentication>
<Toaster />
</CustomTheme>
</TypesafeI18n>