From 9ac9e742c3c32823e906003d66838f32dfcadf6a Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Wed, 12 Oct 2022 18:26:11 +0200 Subject: [PATCH] sort by every property in Leaderboard --- src/App.js | 4 +- src/components/sections/FilterBy.js | 10 +- .../sections/Leaderboard/Leaderboard.js | 105 +++++------------- .../Leaderboard/_renderSubmissions.js | 43 +++++-- .../sections/Leaderboard/sortOptions.js | 44 ++++++++ 5 files changed, 119 insertions(+), 87 deletions(-) create mode 100644 src/components/sections/Leaderboard/sortOptions.js diff --git a/src/App.js b/src/App.js index f75d396..f042388 100644 --- a/src/App.js +++ b/src/App.js @@ -4,7 +4,7 @@ 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 Footer from './components/sections/Footer'; import {CHALLENGE_PAGE, CHALLENGES_PAGE} from './utils/globals'; import Challenge from './pages/Challenge'; import Register from './pages/auth/Register'; @@ -58,7 +58,7 @@ const App = () => { } -