Skip to content

Commit

Permalink
Merge pull request #167 from awest25/display-order
Browse files Browse the repository at this point in the history
display order
  • Loading branch information
Fredenck authored May 30, 2024
2 parents 0997e4d + bddd08c commit 8893b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(interactive)/matches/[slug]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MatchPage = () => {
const [showPercent, setShowPercent] = useState(false);
const [showCount, setShowCount] = useState(false);
const [playingPoint, setPlayingPoint] = useState(null);
const [showPDF, setShowPDF] = useState(false);
const [showPDF, setShowPDF] = useState(true);
const [tab, setTab] = useState(1);
const tableRef = useRef(null);
const iframeRef = useRef(null);
Expand Down Expand Up @@ -233,8 +233,8 @@ const MatchPage = () => {
</div>
</div>
<div className={styles.toggle}>
<button onClick={() => setShowPDF(false)} className={showPDF ? styles.toggle_buttona_inactive : styles.toggle_buttona_active}>Points</button>
<button onClick={() => setShowPDF(true)} className={showPDF ? styles.toggle_buttonb_active : styles.toggle_buttonb_inactive}>Key Stats & Visuals</button>
<button onClick={() => setShowPDF(false)} className={showPDF ? styles.toggle_buttona_inactive : styles.toggle_buttona_active}>Points</button>
{showPDF ? (
<iframe className={styles.pdfView} src={matchData.pdfUrl} width="90%" height="1550" />
) : (
Expand Down

0 comments on commit 8893b91

Please sign in to comment.