diff --git a/app/webpacker/components/CompetitionsOverview/CompetitionsFilters.js b/app/webpacker/components/CompetitionsOverview/CompetitionsFilters.js index a285cb7cc6..b2f8c8c85d 100644 --- a/app/webpacker/components/CompetitionsOverview/CompetitionsFilters.js +++ b/app/webpacker/components/CompetitionsOverview/CompetitionsFilters.js @@ -31,17 +31,17 @@ function CompetitionsFilters({ /> - - + + - + {shouldShowAdminDetails && ( - + )} @@ -61,11 +61,9 @@ function CompetitionsFilters({ {canViewAdminDetails && shouldShowAdminDetails && ( - - - - - + + + )} ); diff --git a/app/webpacker/components/CompetitionsOverview/CompetitionsView.js b/app/webpacker/components/CompetitionsOverview/CompetitionsView.js index e679017947..12913aecfe 100644 --- a/app/webpacker/components/CompetitionsOverview/CompetitionsView.js +++ b/app/webpacker/components/CompetitionsOverview/CompetitionsView.js @@ -16,7 +16,7 @@ import I18n from '../../lib/i18n'; import { apiV0Urls, WCA_API_PAGINATION } from '../../lib/requests/routes.js.erb'; import { fetchJsonOrError } from '../../lib/requests/fetchWithAuthenticityToken'; -import CompetitionsFilters, { CompDisplayCheckboxes, ToggleListOrMapDisplay } from './CompetitionsFilters'; +import CompetitionsFilters, { ToggleListOrMapDisplay } from './CompetitionsFilters'; import ListView from './ListView'; import MapView from './MapView'; import { @@ -125,27 +125,15 @@ function CompetitionsView({ canViewAdminDetails = false }) { dispatchFilter={dispatchFilter} shouldShowAdminDetails={shouldShowAdminDetails} canViewAdminDetails={canViewAdminDetails} + displayMode={displayMode} /> -
- - - - - - -
+ {