Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
k2xl committed Dec 26, 2024
1 parent 5ea6d9b commit 98a8c6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
17 changes: 1 addition & 16 deletions components/multiplayer/matchChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,6 @@ interface LevelTimeData {
[key: string]: string | number | boolean; // for player names, times, and skipped flags
}

interface BarShapeProps {
x: number;
y: number;
width: number;
height: number;
fill?: string;
stroke?: string;
strokeWidth?: number;
opacity?: number;
dataKey: string;
payload: any;
background?: boolean;
index?: number;
className?: string;
}

export default function MatchChart({ match }: MatchChartProps) {
const [activeView, setActiveView] = useState<ChartView>(ChartView.PROGRESS);

Expand Down Expand Up @@ -323,6 +307,7 @@ export default function MatchChart({ match }: MatchChartProps) {
dataKey={playerName}
fill={color}
opacity={0.8}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
shape={(props: any) => {
const playerName = props.dataKey as string;
const isSkipped = props.payload[`${playerName}_skipped`];
Expand Down
4 changes: 2 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default function MyApp({ Component, pageProps, userAgent, initGame }: App
setTimeout(() => {
window.location.reload();
}, 15000);
});
} );
socketConn.on('killSocket', () => {
console.log('killSocket');
socketConn.disconnect();
Expand Down Expand Up @@ -318,7 +318,7 @@ export default function MyApp({ Component, pageProps, userAgent, initGame }: App
}, [selectedGame.id, user?._id]);

useEffect(() => {
// check if redirect_type querystring parameter is set, and if it is equal to "patholoygg" console log hello
// check if redirect_type querystring parameter is set, and if it is equal to "patholoygg" console log hello
const urlParams = new URLSearchParams(window.location.search);
const redirectType = urlParams.get('redirect_type');
const utmSource = urlParams.get('utm_source');
Expand Down

0 comments on commit 98a8c6e

Please sign in to comment.