-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
761a7fb
commit e4cfdee
Showing
3 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NEXT_PUBLIC_FIREBASE_API_KEY= | ||
NEXT_PUBLIC_FIREBASE_API_AUTH_DOMAIN= | ||
NEXT_PUBLIC_FIREBASE_API_PROJECT_ID= | ||
NEXT_PUBLIC_FIREBASE_API_STORAGE_BUCKET= | ||
NEXT_PUBLIC_FIREBASE_API_MESSAGING_SENDER_ID= | ||
NEXT_PUBLIC_FIREBASE_API_APP_ID= | ||
NEXT_PUBLIC_FIREBASE_API_MEASUREMENT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
"use client"; | ||
|
||
import Leaderboard from '@/components/LeaderBoard'; | ||
import React, { useEffect, useState } from 'react'; | ||
import React from 'react'; | ||
import dynamic from 'next/dynamic'; | ||
|
||
const LeaderboardPage = () => { | ||
const [windowWidth, setWindowWidth] = useState(0); | ||
|
||
|
||
|
||
useEffect(() => { | ||
const Leaderboard = dynamic(() => import('@/components/LeaderBoard'), { ssr: false }); | ||
|
||
if (typeof window !== 'undefined') { | ||
|
||
setWindowWidth(window.innerWidth); | ||
|
||
} | ||
|
||
}, []); | ||
const LeaderboardPage = () => { | ||
return ( | ||
<div> | ||
<div className="min-h-screen bg-gray-900"> | ||
<Leaderboard /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LeaderboardPage; | ||
export default LeaderboardPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters