upgrade to tamagui v2 and guest pwa overhaul
This commit is contained in:
12
resources/js/guest-v2/layouts/GuestLocaleLayout.tsx
Normal file
12
resources/js/guest-v2/layouts/GuestLocaleLayout.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import { LocaleProvider } from '@/guest/i18n/LocaleContext';
|
||||
import { DEFAULT_LOCALE } from '@/guest/i18n/messages';
|
||||
|
||||
export default function GuestLocaleLayout() {
|
||||
return (
|
||||
<LocaleProvider defaultLocale={DEFAULT_LOCALE} storageKey="guestLocale_global">
|
||||
<Outlet />
|
||||
</LocaleProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user