Skip to content

Commit 904e0c8

Browse files
committed
feat: Add viewingPublicProfile prop to EloView component
- Introduced a new prop, viewingPublicProfile, to the EloView component to enhance functionality and support public profile viewing scenarios.
1 parent 965a649 commit 904e0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/eloView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getLeague, leagues } from "./utils/leagues";
33
import { useState } from "react";
44
import XPGraph from "./XPGraph";
55

6-
export default function EloView({ eloData, session, isPublic = false, username = null }) {
6+
export default function EloView({ eloData, session, isPublic = false, username = null, viewingPublicProfile = false }) {
77
const { t: text } = useTranslation("common");
88
const userLeague = getLeague(eloData.elo);
99
const [hoveredLeague, setHoveredLeague] = useState(null);

0 commit comments

Comments
 (0)