diff --git a/src/components/specific_challenge/AllEntries/AllEntries.js b/src/components/specific_challenge/AllEntries/AllEntries.js index 5050fc1..3b6a417 100644 --- a/src/components/specific_challenge/AllEntries/AllEntries.js +++ b/src/components/specific_challenge/AllEntries/AllEntries.js @@ -6,6 +6,7 @@ import { H2 } from '../../../utils/fonts'; import { CALC_PAGES, EVALUATIONS_FORMAT, + IS_MOBILE, RENDER_WHEN, } from '../../../utils/globals'; import Loading from '../../generic/Loading'; @@ -55,10 +56,11 @@ const AllEntries = (props) => { const getAllEntriesHeader = () => { let header = ['#', 'submitter']; + if (IS_MOBILE()) header.push('when'); for (let metric of getPossibleMetrics()) { header.push(metric); } - header.push('when'); + if (!IS_MOBILE()) header.push('when'); return header; }; @@ -147,7 +149,52 @@ const AllEntries = (props) => { }; const mobileRender = () => { - return <>; + return ( + +

+ All Entries +

+ {!loading ? ( + <> + + + + + ) : ( + + )} + + ); }; const desktopRender = () => { diff --git a/src/components/specific_challenge/Leaderboard/Leaderboard.js b/src/components/specific_challenge/Leaderboard/Leaderboard.js index 3309153..35289e4 100644 --- a/src/components/specific_challenge/Leaderboard/Leaderboard.js +++ b/src/components/specific_challenge/Leaderboard/Leaderboard.js @@ -180,7 +180,7 @@ const Leaderboard = (props) => {
{ return ( -

+

My Entries

diff --git a/src/components/specific_challenge/Table.js b/src/components/specific_challenge/Table.js index 718a1c9..d032605 100644 --- a/src/components/specific_challenge/Table.js +++ b/src/components/specific_challenge/Table.js @@ -95,7 +95,9 @@ const Table = (props) => { elem = newElem; } let indexModificator = 2; - if (props.tableType === 'Leaderboard') indexModificator = 4; + if (props.tableType === 'leaderboard') indexModificator = 4; + if (props.tableType === 'allEntries') indexModificator = 3; + return elem.map((iterableElem, i) => { return (