From ce0227d3ad947253031122a2e7e2807ec7f96fa4 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 7 Nov 2025 12:56:30 -0800
Subject: chore: change ScoreDisplayProps and Score to be shared types

---
 .../src/components/displays/DancerushScoreDisplay.tsx  | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

(limited to 'frontend/src/components/displays/DancerushScoreDisplay.tsx')

diff --git a/frontend/src/components/displays/DancerushScoreDisplay.tsx b/frontend/src/components/displays/DancerushScoreDisplay.tsx
index d1350ad..2aaebf4 100644
--- a/frontend/src/components/displays/DancerushScoreDisplay.tsx
+++ b/frontend/src/components/displays/DancerushScoreDisplay.tsx
@@ -1,29 +1,13 @@
 import React from "react";
 import {Link} from "react-router";
 import { globalSkipKeys } from "../../types/constants";
+import type {Score, ScoreDisplayProps} from "../../types/game";
 import dancerushEasyImg from "../../assets/games/dancerush/easy.webp";
 import dancerushNormalImg from "../../assets/games/dancerush/normal.webp";
 import p1_img from "../../assets/games/dancerush/1_p.webp";
 import p2_img from "../../assets/games/dancerush/2_p.webp";
 import SHA1 from "crypto-js/sha1";
 
-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 DancerushScoreDisplay: React.FC<ScoreDisplayProps> = ({
   scores,
-- 
cgit v1.2.3

