Skip to content

Commit

Permalink
refactor(RouteLayout): fix lint messages err
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Oct 23, 2023
1 parent 096e9af commit 6ae88c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1156,10 +1156,10 @@ components:
errorOccurred: An error occurred while trying to fetch the data
jumpToRoute: Jump to a Route
route: "Route:"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
SelectFileModal:
ok: OK
cancel: Cancel
Expand Down
8 changes: 4 additions & 4 deletions i18n/german.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,10 @@ components:
errorOccurred: An error occurred while trying to fetch the data
jumpToRoute: Jump to a Route
route: "Route:"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
SelectFileModal:
cancel: Abbrechen
ok: OK
Expand Down
8 changes: 4 additions & 4 deletions i18n/polish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1144,10 +1144,10 @@ components:
errorOccurred: An error occurred while trying to fetch the data
jumpToRoute: Jump to a Route
route: "Route:"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
RouteRow:
patterns: "%num% Patterns"
stops: "%num% Stops"
trips: "%num% Trips"
SelectFileModal:
cancel: Cancel
ok: OK
Expand Down
8 changes: 4 additions & 4 deletions lib/manager/components/reporter/components/RouteLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class RouteRow extends Pure {
selectTab: string => void
}

messages = getComponentMessages('RouteRow')
messages = getComponentMessages('RouteLayout')

_changePatternRouteFilter (tabToSelect: string) {
const {namespace, patternRouteFilterChange, selectTab} = this.props
Expand Down Expand Up @@ -235,17 +235,17 @@ class RouteRow extends Pure {
</Col>
<Col xs={12} md={2} style={{textAlign: 'center'}}>
<Button onClick={this._onStopsClick}>
<h5>{this.messages('stops').replace('%num%', numStops.toString())}</h5>
<h5>{this.messages('RouteRow.stops').replace('%num%', numStops.toString())}</h5>
</Button>
</Col>
<Col xs={12} md={2} style={{textAlign: 'center'}}>
<Button onClick={this._onTripsClick}>
<h5>{this.messages('trips').replace('%num%', numTrips.toString())}</h5>
<h5>{this.messages('RouteRow.trips').replace('%num%', numTrips.toString())}</h5>
</Button>
</Col>
<Col xs={12} md={2} style={{textAlign: 'center'}}>
<Button onClick={this._onPatternsClick}>
<h5>{this.messages('patterns').replace('%num%', numPatterns.toString())}</h5>
<h5>{this.messages('RouteRow.patterns').replace('%num%', numPatterns.toString())}</h5>
</Button>
</Col>
</Row>
Expand Down

0 comments on commit 6ae88c5

Please sign in to comment.