From e3a37769f0d39627d0048006b9e8c80f8c5bc544 Mon Sep 17 00:00:00 2001 From: rojonaitor Date: Sat, 4 Nov 2023 13:31:11 -0600 Subject: [PATCH 1/2] add icon and time --- src/components/solves/ModalSolve.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/solves/ModalSolve.tsx b/src/components/solves/ModalSolve.tsx index 81291f84..5daa594d 100644 --- a/src/components/solves/ModalSolve.tsx +++ b/src/components/solves/ModalSolve.tsx @@ -10,6 +10,7 @@ import formatTime from "@/lib/formatTime"; import moveSolve from "@/lib/moveSolve"; import { ScrambleDisplay } from "../scramble-display"; import { cubeCollection } from "@/lib/cubeCollection"; +import CalendarDays from "@/icons/CalentarDays"; export default function ModalSolve() { const { status, solve, setStatus } = useSolvesStore(); @@ -66,23 +67,34 @@ export default function ModalSolve() { return ( <>
{ if (e.target === e.currentTarget) setStatus(false); }} >
-
+
{formatTime(solve.time)} {solve.plus2 ? "+2" : null}
-
{formatDate(solve.endTime)}
+
+
+ +
+
+
{formatDate(solve.endTime)}
+
+ {new Date(solve.endTime).getHours()}: + {new Date(solve.endTime).getMinutes()} +
+
+
-
{solve.scramble}
+
{solve.scramble}
Date: Sat, 4 Nov 2023 13:35:30 -0600 Subject: [PATCH 2/2] color borders --- src/components/solves/ModalSolve.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/solves/ModalSolve.tsx b/src/components/solves/ModalSolve.tsx index 5daa594d..9b7ed937 100644 --- a/src/components/solves/ModalSolve.tsx +++ b/src/components/solves/ModalSolve.tsx @@ -73,7 +73,7 @@ export default function ModalSolve() { }} >
-
+
{formatTime(solve.time)} @@ -93,7 +93,7 @@ export default function ModalSolve() {
-
+
{solve.scramble}
-
+
{!isAllSolve() && (