From f9012ac7471a1e803e12fcf48da3a10fd5863ec5 Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Sun, 17 Jul 2022 23:29:17 +0100
Subject: [PATCH] feat(client): add view on LR2IR for BMS and PMS
---
.../game/charts/ChartInfoFormat.tsx | 34 +++++++++++++++----
1 file changed, 27 insertions(+), 7 deletions(-)
diff --git a/client/src/components/game/charts/ChartInfoFormat.tsx b/client/src/components/game/charts/ChartInfoFormat.tsx
index a4fa9217f..4b6b2c2b2 100644
--- a/client/src/components/game/charts/ChartInfoFormat.tsx
+++ b/client/src/components/game/charts/ChartInfoFormat.tsx
@@ -103,14 +103,34 @@ export default function ChartInfoFormat({
function ChartInfoMiddle({ game, chart }: { chart: ChartDocument; game: Game }) {
if (game === "bms") {
+ const bmsChart = chart as ChartDocument<"bms:7K" | "bms:14K">;
+
return (
- ).data.hashMD5
- }`}
- >
- View Chart on Ribbit
-
+ <>
+
+ View Chart on Ribbit
+
+
+
+ View on LR2IR
+
+ >
+ );
+ } else if (game === "pms") {
+ const pmsChart = chart as ChartDocument<"pms:Controller" | "pms:Keyboard">;
+
+ return (
+ <>
+
+ View on LR2IR
+
+ >
);
}