Fix lint errors

This commit is contained in:
Timothy Armes
2023-07-28 11:33:10 +02:00
parent 368e753ed7
commit b738d3d14a
5 changed files with 664 additions and 371 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ export default async function RootLayout({
children: ReactNode;
params: { locale?: string };
}) {
const locale = useLocale();
// eslint-disable-next-line react-hooks/rules-of-hooks
const locale = useLocale(); // This hook IS allowed since it's stateless
// Show a 404 error if the user requests an unknown locale
if (params.locale !== undefined && params.locale !== locale) {
+1 -1
View File
@@ -31,7 +31,7 @@ type TournamentsDisplayProps = {
tournaments: Tournament[];
};
export default async function TournamentsDisplay({
export default function TournamentsDisplay({
tournaments,
}: TournamentsDisplayProps) {
useHydrateAtoms([[tournamentsAtom, tournaments]]);