mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start of perforamnce
This commit is contained in:
1 parent
db4132f666
commit
7dfdf4c11b
13 files changed
+90
-50
No files matched your search
@@ -7,8 +7,7 @@ const LocaleContext = createContext<{
|
||||
localeRaw: string | undefined;
|
||||
} | null>(null);
|
||||
|
||||
interface LocaleProviderProps {
|
||||
locale: string | undefined;
|
||||
interface LocaleProviderProps extends LocaleAcceptorProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
@@ -33,3 +32,7 @@ export function useLocale() {
|
||||
|
||||
return { locale: context.locale, strings };
|
||||
}
|
||||
|
||||
export interface LocaleAcceptorProps {
|
||||
locale: string | undefined;
|
||||
}
|
||||
Reference in new issue
Block a user