Skip to content

Commit

Permalink
Clean up merge whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Jan 6, 2025
1 parent 2339187 commit f80c02c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ function CompetitionsFilters({
/>
</Form.Field>

<Form.Group>
<Form.Field width={8}>
<Form.Group widths="equal">
<Form.Field>
<RegionSelector region={filterState.region} dispatchFilter={dispatchFilter} />
</Form.Field>
<Form.Field width={8}>
<Form.Field>
<SearchBar text={filterState.search} dispatchFilter={dispatchFilter} />
</Form.Field>
</Form.Group>

{shouldShowAdminDetails && (
<Form.Field width={16}>
<Form.Field>
<DelegateSelector delegateId={filterState.delegate} dispatchFilter={dispatchFilter} />
</Form.Field>
)}
Expand All @@ -61,11 +61,9 @@ function CompetitionsFilters({
</Form.Group>

{canViewAdminDetails && shouldShowAdminDetails && (
<Form.Group>
<Form.Field>
<AdminStatusButtonGroup filterState={filterState} dispatchFilter={dispatchFilter} />
</Form.Field>
</Form.Group>
<Form.Field>
<AdminStatusButtonGroup filterState={filterState} dispatchFilter={dispatchFilter} />
</Form.Field>
)}
</Form>
);
Expand Down
24 changes: 6 additions & 18 deletions app/webpacker/components/CompetitionsOverview/CompetitionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -125,27 +125,15 @@ function CompetitionsView({ canViewAdminDetails = false }) {
dispatchFilter={dispatchFilter}
shouldShowAdminDetails={shouldShowAdminDetails}
canViewAdminDetails={canViewAdminDetails}
displayMode={displayMode}
/>
</Segment>
</Transition>

<Form>
<Form.Group inline>
<CompDisplayCheckboxes
shouldIncludeCancelled={filterState.shouldIncludeCancelled}
dispatchFilter={dispatchFilter}
shouldShowAdminDetails={shouldShowAdminDetails}
canViewAdminDetails={canViewAdminDetails}
displayMode={displayMode}
/>
</Form.Group>
<Form.Field>
<ToggleListOrMapDisplay
displayMode={displayMode}
setDisplayMode={setDisplayMode}
/>
</Form.Field>
</Form>
<ToggleListOrMapDisplay
displayMode={displayMode}
setDisplayMode={setDisplayMode}
/>

<Segment basic>
{
Expand Down

0 comments on commit f80c02c

Please sign in to comment.