Skip to content

Commit

Permalink
fixed X and M options in history page
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 committed Nov 24, 2023
1 parent 6c9efc3 commit 2d371bd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/account/page.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/account/stats/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions app/history/page.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
6 changes: 5 additions & 1 deletion components/scoring/scoringChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ export default function ScoringChart(props: Props) {
))}
</tbody>
</table>
<section className={`${mobileDevice ? "" : ""} flex gap-2`}>
<section
className={`${mobileDevice ? "" : ""} flex gap-2 ${
history ? "hidden" : ""
}`}
>
<Button title='X' onClick={() => setValueOfSelectedBox("X")} />
<Button title='M' onClick={() => setValueOfSelectedBox("M")} />
</section>
Expand Down

1 comment on commit 2d371bd

@vercel
Copy link

@vercel vercel bot commented on 2d371bd Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.