From 7be756270e5c073674e5e01a95bbebb7c00367ca Mon Sep 17 00:00:00 2001 From: polaris Date: Mon, 1 Jul 2024 12:47:02 -0400 Subject: [PATCH] removed react query --- app/layout.tsx | 5 +--- app/provider.tsx | 14 ---------- components/scoreplaylog/colums.tsx | 45 +++++++++++++++++------------- 3 files changed, 27 insertions(+), 37 deletions(-) delete mode 100644 app/provider.tsx diff --git a/app/layout.tsx b/app/layout.tsx index 8080efd..43e41dd 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,7 +2,6 @@ import type { Metadata } from "next"; import { GeistSans } from "geist/font/sans"; import { Toaster } from "@/components/ui/toaster"; import "./globals.css"; -import ReactQueryProvider from "./provider"; export const metadata: Metadata = { title: "Daphnis", @@ -17,9 +16,7 @@ export default function RootLayout({ return ( - -
{children}
-
+
{children}
diff --git a/app/provider.tsx b/app/provider.tsx deleted file mode 100644 index 9c9a0e6..0000000 --- a/app/provider.tsx +++ /dev/null @@ -1,14 +0,0 @@ -"use client"; - -import { QueryClientProvider, QueryClient } from "@tanstack/react-query"; -import { useState } from "react"; - -const ReactQueryProvider = ({ children }: { children: React.ReactNode }) => { - const [queryClient] = useState(() => new QueryClient()); - - return ( - {children} - ); -}; - -export default ReactQueryProvider; diff --git a/components/scoreplaylog/colums.tsx b/components/scoreplaylog/colums.tsx index 1006671..1d1ed3a 100644 --- a/components/scoreplaylog/colums.tsx +++ b/components/scoreplaylog/colums.tsx @@ -24,38 +24,45 @@ export const columns: ColumnDef[] = [ { accessorKey: "title", header: "Title", + cell: ({ row }) =>
{row.original.title}
, + }, + { + accessorKey: "score", + header: "Score", + cell: ({ row }) => ( +
+ {row.original.score?.toLocaleString()} + {row.original.isNewRecord && New!!}{" "} +
+ ), + }, + { + accessorKey: "userPlayDate", + header: "Date", + }, + + { + accessorKey: "FC / AJ", + header: "FC / AJ", cell: ({ row }) => (
- {row.original.title} - {row.original.isFullCombo && ( - Full Combo + {!row.original.isAllJustice && row.original.isFullCombo && ( + Full Combo )} {row.original.isAllJustice && ( - - All Justice - - )} - {row.original.isNewRecord && ( - New!! + All Justice )}
-
- {row.original.artist} -
), }, { - accessorKey: "score", - header: "Score", - cell: ({ row }) => row.original.score?.toLocaleString(), - }, - { - accessorKey: "userPlayDate", - header: "Date", + accessorKey: "Attempts", + header: "Attempts", + cell: ({ row }) =>
{row.original.title}
, }, { id: "actions",