diff --git a/app/(auth)/sign-in/page.jsx b/app/(auth)/sign-in/page.jsx index f94bf5e..4f2d42a 100644 --- a/app/(auth)/sign-in/page.jsx +++ b/app/(auth)/sign-in/page.jsx @@ -15,7 +15,7 @@ import { Button } from "../../../@/components/ui/button"; import { Input } from "../../../@/components/ui/input"; import Link from "next/link"; import { useRouter } from "next/navigation"; -import { useToast } from "../../../@/components/ui/use-toast"; +import { useToast } from "../../../@/hooks/use-toast"; import { signInSchema } from "../../../model/Schema/signInSchema"; import React, { useState } from "react"; import { @@ -156,6 +156,7 @@ export default function SignInForm() { className="w-full font-bold" type="submit" disabled={isLoading} + arial-label="signin-btn" > {isLoading ? ( @@ -174,6 +175,7 @@ export default function SignInForm() { variant="default" className="w-full flex gap-4" onClick={handleGoogleSignIn} + arial-label="google-signin-btn" > @@ -182,6 +184,7 @@ export default function SignInForm() { variant="default" className="w-full flex gap-4" onClick={handleDiscordSignIn} + arial-label="discord-signin-btn" > @@ -191,6 +194,7 @@ export default function SignInForm() { Sign up diff --git a/app/(auth)/sign-up/page.jsx b/app/(auth)/sign-up/page.jsx index 4838754..c738312 100644 --- a/app/(auth)/sign-up/page.jsx +++ b/app/(auth)/sign-up/page.jsx @@ -202,6 +202,7 @@ const Page = () => { type="submit" className="w-full font-bold" disabled={isSubmitting} + arial-label="signup-btn" > {isSubmitting ? ( <> @@ -218,6 +219,7 @@ const Page = () => { Sign in diff --git a/app/(auth)/verify/[username]/page.jsx b/app/(auth)/verify/[username]/page.jsx index e6cf711..accf97d 100644 --- a/app/(auth)/verify/[username]/page.jsx +++ b/app/(auth)/verify/[username]/page.jsx @@ -104,7 +104,11 @@ const VerifyAccount = () => { /> - diff --git a/app/blogs/[slug]/page.jsx b/app/blogs/[slug]/page.jsx index 413be9f..663c7c9 100644 --- a/app/blogs/[slug]/page.jsx +++ b/app/blogs/[slug]/page.jsx @@ -46,7 +46,11 @@ const page = async ({ params }) => { return (

- + diff --git a/app/blogs/page.jsx b/app/blogs/page.jsx index a589b9c..d9bd67f 100644 --- a/app/blogs/page.jsx +++ b/app/blogs/page.jsx @@ -86,8 +86,14 @@ const page = async () => { diff --git a/app/bracket/page.js b/app/bracket/page.js index e70d4fd..25fba5e 100644 --- a/app/bracket/page.js +++ b/app/bracket/page.js @@ -11,6 +11,7 @@ const BracketPage = () => { Create a bracket diff --git a/app/create/team/page.jsx b/app/create/team/page.jsx index a1ace23..c731453 100644 --- a/app/create/team/page.jsx +++ b/app/create/team/page.jsx @@ -317,7 +317,9 @@ export default function CreateTeamForm() { />

- +
diff --git a/app/create/tournament/page.js b/app/create/tournament/page.js index a321093..8bd4e04 100644 --- a/app/create/tournament/page.js +++ b/app/create/tournament/page.js @@ -338,7 +338,9 @@ export default function Page() { Prize Configuration{" "} - + {/* Rules */} @@ -351,13 +353,20 @@ export default function Page() { className="w-fit bg-foreground/5 p-2 rounded mb-2 text-sm" placeholder="Enter Rule" /> - + {/* Sponsors */}

Sponsors

- +
{/* Game Configuration */} @@ -389,7 +398,9 @@ export default function Page() { /> - + {/* Tournament Configuration */} @@ -466,7 +477,10 @@ export default function Page() { /> - @@ -477,6 +491,7 @@ export default function Page() { type="submit" className={`mt-10 px-6 py-2 rounded-md font-semibold text-white ${isSubmitting ? "bg-blue-500" : "bg-blue-600 hover:bg-blue-700"} transition-colors duration-300`} disabled={isSubmitting} + arial-label="team-create-btn" > {isSubmitting ? "Creating..." : "Create Tournament"} diff --git a/app/create/tournament/tournament/page.js b/app/create/tournament/tournament/page.js index b539ebc..e7d31e8 100644 --- a/app/create/tournament/tournament/page.js +++ b/app/create/tournament/tournament/page.js @@ -144,6 +144,7 @@ export default function Page() { : "bg-slate-500 hover:bg-slate-600" }`} onClick={() => setSelectedPlatform(platform)} + arial-label="platform-btn" > {platform} @@ -216,6 +217,7 @@ export default function Page() { type="submit" className={`px-6 py-2 rounded-md ${isSubmitting ? "bg-blue-300" : "bg-blue-600 hover:bg-blue-700"} transition-colors duration-300`} disabled={isSubmitting} + arial-label="create-tournament-btn" > {isSubmitting ? "Creating..." : "Create Tournament"} @@ -223,6 +225,7 @@ export default function Page() { type="button" className="px-6 py-2 rounded-md text-white bg-red-600 hover:bg-red-700 transition-colors duration-300" onClick={handleReset} + arial-label="reset-btn" > Reset diff --git a/app/games/[id]/page.js b/app/games/[id]/page.js index ee13dfd..5478767 100644 --- a/app/games/[id]/page.js +++ b/app/games/[id]/page.js @@ -67,6 +67,7 @@ export default function GamePage({ params }) { @@ -152,6 +157,7 @@ export default function GamePage({ params }) { variant="ghost" onClick={clearFilters} className="w-full rounded transition-colors" + arial-label="clear-filter-btn" > Clear Filters diff --git a/app/games/page.js b/app/games/page.js index abad5ac..46ed6e6 100644 --- a/app/games/page.js +++ b/app/games/page.js @@ -49,6 +49,7 @@ export default async function page({ searchParams }) { - +
{children}