@autobusal/routes-search 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/RoutesSearch.tsx +6 -1
  2. package/package.json +1 -1
package/RoutesSearch.tsx CHANGED
@@ -152,6 +152,7 @@ const RoutesSearch = ({ type, from, to, departure, _return, adultsNo, childrenNo
152
152
  <Autocomplete
153
153
  key={ `from-${ picked.from ?? '' }` }
154
154
  name="from"
155
+ label={ t('routes_search.from', { ns: 'common' }) }
155
156
  defaultValue={ picked.from ?? from }
156
157
  data={ cities }
157
158
  validation="required"
@@ -173,6 +174,7 @@ const RoutesSearch = ({ type, from, to, departure, _return, adultsNo, childrenNo
173
174
  <Autocomplete
174
175
  key={ `to-${ picked.to ?? '' }` }
175
176
  name="to"
177
+ label={ t('routes_search.to', { ns: 'common' }) }
176
178
  defaultValue={ picked.to ?? to }
177
179
  data={ cities }
178
180
  validation="required"
@@ -198,6 +200,7 @@ const RoutesSearch = ({ type, from, to, departure, _return, adultsNo, childrenNo
198
200
  <Calendar
199
201
  type="picker"
200
202
  name="departure"
203
+ label={ t('routes_search.departure', { ns: 'common' }) }
201
204
  defaultValue={ departure }
202
205
  t={ t }
203
206
  validation="required"
@@ -225,6 +228,7 @@ const RoutesSearch = ({ type, from, to, departure, _return, adultsNo, childrenNo
225
228
  <Calendar
226
229
  type="picker"
227
230
  name="_return"
231
+ label={ t('routes_search.return', { ns: 'common' }) }
228
232
  defaultValue={ _return }
229
233
  minDate={ departureDate }
230
234
  t={ t }
@@ -242,7 +246,8 @@ const RoutesSearch = ({ type, from, to, departure, _return, adultsNo, childrenNo
242
246
  <Item>
243
247
  <Title>{ t('routes_search.passengers', { ns: 'common' }) }</Title>
244
248
 
245
- <Passengers
249
+ <Passengers
250
+ label={ t('routes_search.passengers', { ns: 'common' }) }
246
251
  defaultAdults={ adultsNo }
247
252
  defaultChildren={ childrenNo }
248
253
  defaultBabies={ babiesNo }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/routes-search",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"