From ee50ef6f226e8eeff503e24d090559dd7cb149fa Mon Sep 17 00:00:00 2001 From: Sune Date: Tue, 24 Sep 2024 20:34:26 +0200 Subject: [PATCH 1/3] fix(replays): correct time and apples for battle replays --- src/components/RecListItem.jsx | 7 ++++++- src/pages/replay/index.jsx | 33 ++++++++++++++------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/RecListItem.jsx b/src/components/RecListItem.jsx index e6db62e..6737397 100644 --- a/src/components/RecListItem.jsx +++ b/src/components/RecListItem.jsx @@ -39,6 +39,7 @@ const RecListItem = ({ replay, selected, columns, mergable = false }) => { const getTags = () => { return replay.Tags.map(tag => tag.Name); }; + return ( { )} {columns.indexOf('Time') !== -1 && ( - )} {columns.indexOf('By') !== -1 && ( diff --git a/src/pages/replay/index.jsx b/src/pages/replay/index.jsx index a5e2fc6..bc9d6d2 100644 --- a/src/pages/replay/index.jsx +++ b/src/pages/replay/index.jsx @@ -47,6 +47,16 @@ import { Row, Column } from 'components/Containers'; import { pts } from 'utils/cups'; import { mod } from 'utils/nick'; +const RecTime = ({ type, replay }) => { + if (type === 'cup') { + return