Skip to content

Commit 620fa9d

Browse files
committed
SEO Optimized
1 parent e9b62f5 commit 620fa9d

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

components/Map/MapAutoComplete.jsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,16 @@ const SearchInput = compose(
5757
return (
5858
<div className="map_autocomplete">
5959
<StandaloneSearchBox ref={refs} onPlacesChanged={onPlacesChanged}>
60-
<label>
61-
{' '}
62-
<Input
63-
type="text"
64-
defaultValue=""
65-
value={locationInput.searchedLocation || ''}
66-
placeholder="Search “Vietnam, Asia”"
67-
size="large"
68-
onChange={handleOnChange}
69-
onPressEnter={handleOnPressEnter}
70-
/>
71-
</label>
60+
<Input
61+
id="map_autocomplete_input"
62+
type="text"
63+
defaultValue=""
64+
value={locationInput.searchedLocation || ''}
65+
placeholder="Search “Vietnam, Asia”"
66+
size="large"
67+
onChange={handleOnChange}
68+
onPressEnter={handleOnPressEnter}
69+
/>
7270
</StandaloneSearchBox>
7371
</div>
7472
);

container/Home/Search/SearchForm.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ const SearchForm = () => {
138138
<ComponentWrapper>
139139
<FaMapMarkerAlt className="map-marker" />
140140
<MapAutoComplete updateValue={(value) => updateValueFunc(value)} />
141-
<svg
141+
<label for="map_autocomplete_input">
142+
<svg
142143
xmlns="http://www.w3.org/2000/svg"
143144
version="1.1"
144145
x="0px"
@@ -148,10 +149,11 @@ const SearchForm = () => {
148149
viewBox="0 0 144.083 144"
149150
enableBackground="new 0 0 144.083 144"
150151
className="target"
151-
>
152+
>
152153
<path d="M117.292,69h-13.587C102.28,53.851,90.19,41.761,75.042,40.337V26.5h-6v13.837C53.893,41.761,41.802,53.851,40.378,69 H26.792v6h13.587c1.425,15.148,13.515,27.238,28.663,28.663V117.5h6v-13.837C90.19,102.238,102.28,90.148,103.705,75h13.587V69z M72.042,97.809c-14.23,0-25.809-11.578-25.809-25.809c0-14.231,11.578-25.809,25.809-25.809S97.85,57.769,97.85,72 C97.85,86.23,86.272,97.809,72.042,97.809z" />
153154
<path d="M72.042,52.541c-10.729,0-19.459,8.729-19.459,19.459s8.729,19.459,19.459,19.459S91.5,82.729,91.5,72 S82.771,52.541,72.042,52.541z M72.042,85.459c-7.421,0-13.459-6.037-13.459-13.459c0-7.421,6.038-13.459,13.459-13.459 S85.5,64.579,85.5,72C85.5,79.422,79.462,85.459,72.042,85.459z" />
154-
</svg>
155+
</svg>
156+
</label>
155157
</ComponentWrapper>
156158

157159
<ComponentWrapper>

0 commit comments

Comments
 (0)