added diff name and setup skeleton for top recent plays

This commit is contained in:
Polaris
2024-08-14 11:52:19 -04:00
parent a2f5febb60
commit ad12f07cde
7 changed files with 93 additions and 8 deletions

View File

@ -18,7 +18,7 @@ import { generateShareToken } from "@/app/(sharing)/[token]/token";
import { ArrowUpDown, MoreHorizontalIcon } from "lucide-react";
import { chuni_score_playlog } from "@/prisma/schemas/artemis/generated/artemis";
import { chuni_static_music } from "@/prisma/schemas/artemis/generated/artemis";
import { getGrade } from "@/lib/helpers";
import { getDifficultyText, getGrade } from "@/lib/helpers";
import { Skeleton } from "../ui/skeleton";
type chunithm = chuni_score_playlog &
@ -105,7 +105,13 @@ export const columns: ColumnDef<chunithm>[] = [
{
accessorKey: "difficulty",
header: "Difficulty",
cell: ({ row }) => <div className="font-medium">{row.original.level}</div>,
cell: ({ row }) => (
<div className="font-medium">
{row.original.level}
<br />
{getDifficultyText(row.original.chartId)}
</div>
),
},
{
accessorKey: "FC / AJ",