From 2d371bd9552a2d7f6c32d48ac5dec9ec3930691b Mon Sep 17 00:00:00 2001 From: cqb13 Date: Fri, 24 Nov 2023 13:40:13 -0500 Subject: [PATCH] fixed X and M options in history page --- app/account/page.tsx | 4 ++-- app/account/stats/page.tsx | 2 +- app/history/page.tsx | 4 ++-- components/scoring/scoringChart.tsx | 6 +++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/account/page.tsx b/app/account/page.tsx index 503ea3a..ce28921 100644 --- a/app/account/page.tsx +++ b/app/account/page.tsx @@ -1,11 +1,11 @@ "use client"; -import updateDisplayName from "@/utils/firebase/db/updateDisplayName"; -import ConfirmPopup from "@/components/misc/confirmPopup"; import NotificationPopup from "@/components/general/notificationPopup"; +import updateDisplayName from "@/utils/firebase/db/updateDisplayName"; import updateProfileType from "@/utils/firebase/db/updateProfileType"; import deleteAccount from "@/utils/firebase/account/deleteAccount"; import googleSignOut from "@/utils/firebase/account/googleSignOut"; +import ConfirmPopup from "@/components/misc/confirmPopup"; import getUserDoc from "@/utils/firebase/db/getUserDoc"; import { useAuthContext } from "@context/authContext"; import Dropdown from "@/components/general/dropdown"; diff --git a/app/account/stats/page.tsx b/app/account/stats/page.tsx index 4f68de2..1938486 100644 --- a/app/account/stats/page.tsx +++ b/app/account/stats/page.tsx @@ -2,8 +2,8 @@ import countTotalSplits from "@/utils/score/countTotalSplits"; import getAverageScore from "@/utils/score/getAverageScore"; -import getUserDoc from "@/utils/firebase/db/getUserDoc"; import StatDisplay from "@/components/account/statDisplay"; +import getUserDoc from "@/utils/firebase/db/getUserDoc"; import { useAuthContext } from "@context/authContext"; import { useState, useEffect } from "react"; import { auth } from "@lib/firebase"; diff --git a/app/history/page.tsx b/app/history/page.tsx index a6145ac..13e3e08 100644 --- a/app/history/page.tsx +++ b/app/history/page.tsx @@ -1,11 +1,11 @@ "use client"; -import getAllSessions from "@/utils/score/getAllSessions"; import NotificationPopup from "@/components/general/notificationPopup"; import FinalScoringStats from "@/components/scoring/finalScoringStats"; import deleteSession from "@/utils/firebase/db/deleteSession"; -import ConfirmPopup from "@/components/misc/confirmPopup"; import ScoringChart from "@/components/scoring/scoringChart"; +import getAllSessions from "@/utils/score/getAllSessions"; +import ConfirmPopup from "@/components/misc/confirmPopup"; import { useAuthContext } from "@context/authContext"; import Dropdown from "@/components/general/dropdown"; import { doc, getDoc } from "firebase/firestore"; diff --git a/components/scoring/scoringChart.tsx b/components/scoring/scoringChart.tsx index f804077..4cb2e73 100644 --- a/components/scoring/scoringChart.tsx +++ b/components/scoring/scoringChart.tsx @@ -229,7 +229,11 @@ export default function ScoringChart(props: Props) { ))} -
+