aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-11-07 12:56:30 -0800
committerPinapelz <yukais@pinapelz.com>2025-11-07 12:56:30 -0800
commitce0227d3ad947253031122a2e7e2807ec7f96fa4 (patch)
tree12ff91b19fb82d90bca16bb10fe23a1a0f953951 /frontend/src/components/displays/MusicDiverScoreDisplay.tsx
parentbd525aaba017deb95415c28ea6725ddc1dae7890 (diff)
chore: change ScoreDisplayProps and Score to be shared types
Diffstat (limited to 'frontend/src/components/displays/MusicDiverScoreDisplay.tsx')
-rw-r--r--frontend/src/components/displays/MusicDiverScoreDisplay.tsx18
1 files changed, 1 insertions, 17 deletions
diff --git a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
index dcc57e3..282268a 100644
--- a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
+++ b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
@@ -2,24 +2,8 @@ import React from "react";
import SHA1 from "crypto-js/sha1";
import { Link } from "react-router";
import { globalSkipKeys } from "../../types/constants";
+import type {Score, ScoreDisplayProps} from "../../types/game";
-interface Score {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- [key: string]: any;
- timestamp: string | number;
- username?: string;
-}
-
-interface ScoreDisplayProps {
- scores: Score[];
- viewMode: "cards" | "table";
- sortField: string;
- sortDirection: "asc" | "desc";
- onSort: (field: string) => void;
- onDelete?: (scoreId: number) => void;
- showUsername?: boolean;
- hideTitleArtist?: boolean;
-}
const MusicDiverDisplay: React.FC<ScoreDisplayProps> = ({
scores,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage