Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Oct 20, 2024
1 parent 027e5d1 commit 4569c95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/play/[level]/[attempt]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use client";

import React from "react";
import { Authenticated, useQuery } from "convex/react";
import { ChevronLeftIcon } from "@radix-ui/react-icons";
import { Authenticated, useQuery } from "convex/react";
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { Visualizer } from "@/components/Visualizer";
import { Button } from "@/components/ui/button";
import { api } from "@/convex/_generated/api";

export default function PlayLevelAttemptPage({
Expand Down
6 changes: 3 additions & 3 deletions app/play/[level]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ export default function PlayLevelPage({
<Authenticated>
{tries && tries.attempts && tries.attempts.length > 0 && (
<>
<div className="font-semibold text-2xl mt-4">Tries</div>
<div className="flex flex-wrap items-center justify-around w-full gap-2">
<div className="mt-4 text-2xl font-semibold">Tries</div>
<div className="flex w-full flex-wrap items-center justify-around gap-2">
{tries.attempts.map((attempt, idx) => (
<Button
asChild
Expand All @@ -290,7 +290,7 @@ export default function PlayLevelPage({
>
<Link
key={attempt?._id}
className="flex flex-col gap-y-2 items-center"
className="flex flex-col items-center gap-y-2"
href={`/play/${level}/${idx + 1}`}
>
Attempt #{idx + 1}
Expand Down
2 changes: 1 addition & 1 deletion convex/playerresults.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getAuthUserId } from "@convex-dev/auth/server";
import { v } from "convex/values";
import { Id } from "./_generated/dataModel";
import { api } from "./_generated/api";
import { Id } from "./_generated/dataModel";
import { mutation, query } from "./_generated/server";

export const getUserAttempt = query({
Expand Down

0 comments on commit 4569c95

Please sign in to comment.