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..45d33caaf0 100644 --- a/app/webpacker/components/CompetitionsOverview/CompetitionsView.js +++ b/app/webpacker/components/CompetitionsOverview/CompetitionsView.js @@ -5,7 +5,6 @@ import { useInfiniteQuery } from '@tanstack/react-query'; import { Button, Container, - Form, Header, Icon, Segment, @@ -16,7 +15,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 +124,15 @@ function CompetitionsView({ canViewAdminDetails = false }) { dispatchFilter={dispatchFilter} shouldShowAdminDetails={shouldShowAdminDetails} canViewAdminDetails={canViewAdminDetails} + displayMode={displayMode} /> -
- - - - - - -
+ {