forked from PolarisPyra/daphnis
removed react query
This commit is contained in:
parent
9ca8b1ef97
commit
7be756270e
@ -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 (
|
||||
<html lang="en" className={GeistSans.className}>
|
||||
<body className={GeistSans.className}>
|
||||
<ReactQueryProvider>
|
||||
<main className="">{children} </main>
|
||||
</ReactQueryProvider>
|
||||
<main className="">{children} </main>
|
||||
<Toaster />
|
||||
</body>
|
||||
</html>
|
||||
|
@ -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 (
|
||||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default ReactQueryProvider;
|
@ -24,38 +24,45 @@ export const columns: ColumnDef<chuni_score_playlog & chuni_static_music>[] = [
|
||||
{
|
||||
accessorKey: "title",
|
||||
header: "Title",
|
||||
cell: ({ row }) => <div className="font-medium">{row.original.title}</div>,
|
||||
},
|
||||
{
|
||||
accessorKey: "score",
|
||||
header: "Score",
|
||||
cell: ({ row }) => (
|
||||
<div>
|
||||
{row.original.score?.toLocaleString()}
|
||||
{row.original.isNewRecord && <span className="pl-2 ">New!!</span>}{" "}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
accessorKey: "userPlayDate",
|
||||
header: "Date",
|
||||
},
|
||||
|
||||
{
|
||||
accessorKey: "FC / AJ",
|
||||
header: "FC / AJ",
|
||||
cell: ({ row }) => (
|
||||
<div>
|
||||
<div className="font-medium">
|
||||
{row.original.title}
|
||||
<span className="space-x-2 pl-2">
|
||||
{row.original.isFullCombo && (
|
||||
<Badge className="rounded-sm">Full Combo</Badge>
|
||||
{!row.original.isAllJustice && row.original.isFullCombo && (
|
||||
<span className="">Full Combo</span>
|
||||
)}
|
||||
{row.original.isAllJustice && (
|
||||
<Badge className="rounded-sm bg-yellow-500 text-black">
|
||||
All Justice
|
||||
</Badge>
|
||||
)}
|
||||
{row.original.isNewRecord && (
|
||||
<Badge className="rounded-sm bg-pink-400 text-white">New!!</Badge>
|
||||
<span className=" ">All Justice</span>
|
||||
)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="text-sm text-muted-foreground truncate inline-block w-[200px]">
|
||||
{row.original.artist}
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
accessorKey: "score",
|
||||
header: "Score",
|
||||
cell: ({ row }) => row.original.score?.toLocaleString(),
|
||||
},
|
||||
{
|
||||
accessorKey: "userPlayDate",
|
||||
header: "Date",
|
||||
accessorKey: "Attempts",
|
||||
header: "Attempts",
|
||||
cell: ({ row }) => <div className="font-medium">{row.original.title}</div>,
|
||||
},
|
||||
{
|
||||
id: "actions",
|
||||
|
Loading…
Reference in New Issue
Block a user