@autobusal/routes-order 1.31.1 → 1.31.2
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.
- package/CHANGELOG.md +6 -0
- package/Found/Route/Route.tsx +2 -2
- package/Step5/Summary/About/About.tsx +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.31.2
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **The route card and booking summary show the operator's `display_name`**, not `company` - an operator that set a brand name (`@autobusal/providers` 1.34.0) now appears under that name in search results and the booking summary, same as everywhere else it's now shown.
|
|
8
|
+
|
|
3
9
|
## 1.31.1
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/Found/Route/Route.tsx
CHANGED
|
@@ -131,7 +131,7 @@ const Route = ({ data, type, date, passengers, t, onSave, children }: Props): JS
|
|
|
131
131
|
|
|
132
132
|
<Trip>
|
|
133
133
|
<Company>
|
|
134
|
-
<LinkCompany to={ bookOnUrl ?? data.operator.link } target="_blank" rel="noopener noreferrer" title={ data.operator.
|
|
134
|
+
<LinkCompany to={ bookOnUrl ?? data.operator.link } target="_blank" rel="noopener noreferrer" title={ data.operator.display_name }><img src={ data.operator.logo_url || LOGO_FALLBACK } onError={ (e) => { e.currentTarget.onerror = null; e.currentTarget.src = LOGO_FALLBACK; } } alt={ data.operator.display_name } /></LinkCompany>
|
|
135
135
|
|
|
136
136
|
{ /* Edited: Ferjolt Ozuni - Date: 2026-08-03
|
|
137
137
|
The OPERATOR's rating rather than this route's: a single route
|
|
@@ -240,7 +240,7 @@ const Route = ({ data, type, date, passengers, t, onSave, children }: Props): JS
|
|
|
240
240
|
text={
|
|
241
241
|
<>
|
|
242
242
|
<RiBus2Line />
|
|
243
|
-
{ isExternalRedirect ? t('routes_order.step2.route.book_on', { provider: data.operator.
|
|
243
|
+
{ isExternalRedirect ? t('routes_order.step2.route.book_on', { provider: data.operator.display_name }) : t('routes_order.step2.route.select') }
|
|
244
244
|
</>
|
|
245
245
|
}
|
|
246
246
|
onClick={ () => (isExternalRedirect && bookOnUrl ? window.open(bookOnUrl, '_blank', 'noopener,noreferrer') : onSave(data)) }
|
|
@@ -65,10 +65,10 @@ const About = ({ type, step1, data, number, t }: Props): (JSX.Element | null) =>
|
|
|
65
65
|
rather than as the operator being identified. */ }
|
|
66
66
|
<Carrier>
|
|
67
67
|
{ data.operator.logo_url && (
|
|
68
|
-
<Logo src={ data.operator.logo_url } alt={ data.operator.
|
|
68
|
+
<Logo src={ data.operator.logo_url } alt={ data.operator.display_name } />
|
|
69
69
|
) }
|
|
70
70
|
|
|
71
|
-
<Operator>{ data.operator.
|
|
71
|
+
<Operator>{ data.operator.display_name }</Operator>
|
|
72
72
|
</Carrier>
|
|
73
73
|
|
|
74
74
|
<Leg>
|