-
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.
add points when add new items and return items
- Loading branch information
Showing
7 changed files
with
63 additions
and
37 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
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 |
---|---|---|
|
@@ -108,8 +108,6 @@ export default function Home() { | |
const [screenWidth, setScreenWidth] = useState(window.screen.width); | ||
const [uploadImg, setUploadImg] = useState(""); | ||
|
||
console.log(data); | ||
|
||
// LOGIN MODAL | ||
const { | ||
isOpen: isLoginModalOpen, | ||
|
@@ -149,11 +147,6 @@ export default function Home() { | |
getData(); | ||
}, []); | ||
|
||
//[email protected] | ||
//[email protected] | ||
//[email protected] | ||
//[email protected] | ||
//[email protected] | ||
//LEADERBOARD GET INFO | ||
useEffect(() => { | ||
const getLeaderboard = async () => { | ||
|
@@ -198,7 +191,6 @@ export default function Home() { | |
getLeaderboard(); | ||
}, [user]); | ||
|
||
console.log(leaderboard); | ||
window.onresize = () => { | ||
setScreenWidth(window.screen.width); | ||
}; | ||
|
@@ -562,6 +554,7 @@ export default function Home() { | |
setData={setData} | ||
setFocusLocation={setFocusLocation} | ||
onResultsBarClose={onResultsBarClose} | ||
setLeaderboard={setLeaderboard} | ||
/> | ||
</Flex> | ||
</DrawerBody> | ||
|
@@ -591,6 +584,7 @@ export default function Home() { | |
setUploadImg={setUploadImg} | ||
uploadImg={uploadImg} | ||
upload={upload} | ||
setLeaderboard={setLeaderboard} | ||
/> | ||
</Flex> | ||
<Flex | ||
|
@@ -604,6 +598,7 @@ export default function Home() { | |
findFilter={findFilter} | ||
setData={setData} | ||
setFocusLocation={setFocusLocation} | ||
setLeaderboard={setLeaderboard} | ||
/> | ||
</Flex> | ||
<Box | ||
|
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
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
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
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
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