typescript-typenfehler behoben.. npm run lint läuft nun fehlerfrei durch.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { usePage } from '@inertiajs/react';
|
||||
|
||||
export const useLocale = () => {
|
||||
const { locale } = usePage().props as any;
|
||||
const { locale } = usePage<{ locale?: string }>().props;
|
||||
|
||||
return locale;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user