From a77fe19ebc596477395c8b1d2325db103ba0078f Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Wed, 19 Oct 2022 17:48:04 +0200 Subject: [PATCH] basic my entries and some leaderboard corrections --- src/App.js | 79 +++++++----- src/api/getMyEntries.js | 4 +- .../sections/Leaderboard/Leaderboard.js | 16 ++- .../Leaderboard/_renderSubmissions.js | 56 ++++----- src/components/sections/MyEntries.js | 112 ++++++++++++++++-- .../MyEntries/_renderMySubmissions.js | 104 ++++++++++++++++ 6 files changed, 299 insertions(+), 72 deletions(-) create mode 100644 src/components/sections/MyEntries/_renderMySubmissions.js diff --git a/src/App.js b/src/App.js index 9aefcfa..6b18280 100644 --- a/src/App.js +++ b/src/App.js @@ -4,7 +4,6 @@ import LandingPage from './pages/LandingPage'; import Challenges from './pages/Challanges/Challenges'; import {BrowserRouter, Route, Routes} from 'react-router-dom'; import NavBar from './components/elements/NavBar'; -// import Footer from './components/sections/Footer'; import {CHALLENGE_PAGE, CHALLENGES_PAGE, IS_MOBILE} from './utils/globals'; import Challenge from './pages/Challenge'; import Register from './pages/auth/Register'; @@ -15,6 +14,8 @@ import KeyCloakService from './services/KeyCloakService'; import React from 'react'; import LoggedBar from './components/elements/LoggedBar'; import addUser from './api/addUser'; +import Loading from './components/elements/Loading'; +import {FlexColumn} from './utils/containers'; const App = () => { const [loggedBarVisible, setLoggedBarVisible] = React.useState('100vw'); @@ -51,35 +52,53 @@ const App = () => { setLoggedBarHover(false); }; - return ( - - - - {!IS_MOBILE() ? : ''} - - }/> - }/> - }/> - }/> - }/> - }/> - { - KeyCloakService.isLoggedIn() ? <> - }/> - }/> - : <> - }/> - }/> - - } - - {/*