fix build complaints

This commit is contained in:
Gavin McDonald
2025-04-19 12:57:31 -04:00
parent 48bc2533c5
commit c3b09fc092
6 changed files with 24 additions and 61 deletions

View File

@@ -5,7 +5,7 @@ export default function Custom404() {
<main className="min-h-screen flex flex-col items-center justify-center text-center p-8 bg-[url('/img/table3.png')] bg-cover bg-center">
<h1 className="text-4xl font-bold text-gray-400 mb-4">404 - Game Not Found</h1>
<p className="text-lg text-gray-400">
The game you're looking for doesn't exist or has expired.
The game youre looking for doesnt exist or has expired.
</p>
<Link href="/">
<button className="mt-4 px-4 py-2 bg-gray-800 hover:bg-gray-700 text-white rounded-xl transition cursor-pointer">

View File

@@ -64,7 +64,12 @@ export default function PermissionTogglePanel({
{Object.entries(gameData.settings)
.filter(([_key, value]) => typeof value === 'boolean')
.map(([key, value]) => (
<Switch label={key} value={value} toggleAction={() => togglePermission(key)} />
<Switch
key={key}
label={key}
value={value}
toggleAction={() => togglePermission(key)}
/>
))}
<fieldset className="flex flex-col">
<div className="text-xs text-gray-400 mb-1">Card style:</div>

View File

@@ -2,8 +2,8 @@
import { useRef, useState, ReactNode } from 'react';
type TooltipProps = {
children: React.ReactNode;
content: React.ReactNode;
children: ReactNode;
content: ReactNode;
delay?: number;
mobileDelay?: number;
offsetX?: number;