diff --git a/src/components/sections/MyEntries.js b/src/components/sections/MyEntries/MyEntries.js similarity index 70% rename from src/components/sections/MyEntries.js rename to src/components/sections/MyEntries/MyEntries.js index c9a26bc..48ab1d3 100644 --- a/src/components/sections/MyEntries.js +++ b/src/components/sections/MyEntries/MyEntries.js @@ -1,27 +1,21 @@ import React from 'react'; -import {FlexColumn} from '../../utils/containers'; -import {H2} from '../../utils/fonts'; -import getMyEntries from '../../api/getMyEntries'; -// import Search from '../elements/Search'; -import Table from '../elements/Table'; -import Pager from '../elements/Pager'; -import {CALC_PAGES} from '../../utils/globals'; +import {FlexColumn} from '../../../utils/containers'; +import {H2} from '../../../utils/fonts'; +import getMyEntries from '../../../api/getMyEntries'; +import Pager from '../../elements/Pager'; +import {CALC_PAGES} from '../../../utils/globals'; import Media from 'react-media'; -import theme from '../../utils/theme'; -// import sortOptions from './Leaderboard/sortOptions'; -// import FilterBy from './FilterBy'; -import _tableSearchQueryHandler from './Leaderboard/_tableSearchQueryHandler'; -import Loading from '../elements/Loading'; -import _renderMySubmissions from './MyEntries/_renderMySubmissions'; +import theme from '../../../utils/theme'; +import _tableSearchQueryHandler from '../Leaderboard/_tableSearchQueryHandler'; +import Loading from '../../elements/Loading'; +import _renderMySubmissions from './_renderMySubmissions'; const MyEntries = (props) => { - /* eslint-disable */ const [myEntriesFromAPI, setMyEntriesFromAPI] = React.useState({}); - /* eslint-disable */ const [myEntries, setMyEntries] = React.useState({}); - /* eslint-disable */ const [loading, setLoading] = React.useState(true); const [pageNr, setPageNr] = React.useState(1); + /* eslint-disable */ const [metricChoose, setMetricChoose] = React.useState(0); const [sortBy, setSortBy] = React.useState(5); @@ -96,13 +90,12 @@ const MyEntries = (props) => {