Skip to content

Commit

Permalink
revert location search
Browse files Browse the repository at this point in the history
  • Loading branch information
djbusstop committed Nov 14, 2023
1 parent 7e8cf0f commit df2e44b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/features/events/components/LocationModal/LocationSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { ZetkinLocation } from 'utils/types/zetkin';

interface LocationSearchProps {
onChange: (value: ZetkinLocation) => void;
onInputChange?: (value: string) => void;
onTextFieldChange?: (value: string) => void;
onInputChange: (value: string) => void;
onTextFieldChange: (value: string) => void;
onClickGeolocate: () => void;
options: ZetkinLocation[];
}
Expand All @@ -28,7 +28,7 @@ const LocationSearch: FC<LocationSearchProps> = ({
fullWidth
getOptionLabel={(option) => option.title}
onChange={(ev, value) => onChange(value)}
onInputChange={(ev, value) => onInputChange && onInputChange(value)}
onInputChange={(ev, value) => onInputChange(value)}
options={options}
renderInput={(params) => (
<TextField
Expand All @@ -42,9 +42,7 @@ const LocationSearch: FC<LocationSearchProps> = ({
),
}}
label={messages.locationModal.searchBox()}
onChange={(ev) =>
onTextFieldChange && onTextFieldChange(ev.target.value)
}
onChange={(ev) => onTextFieldChange(ev.target.value)}
sx={{
backgroundColor: 'white',
borderRadius: '5px',
Expand Down

0 comments on commit df2e44b

Please sign in to comment.