Skip to content

Commit

Permalink
refactor(TimetableEditor): make props explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Oct 9, 2023
1 parent 08f425a commit 48ff8db
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/editor/components/timetable/TimetableEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ export default class TimetableEditor extends Component<Props, State> {
activeSchedule,
timetable,
toggleAllRows,
toggleDepartureTimes,
toggleRowSelection,
toggleUseSeconds,
tripCounts
} = this.props
const {useSecondsInOffset} = timetable
Expand Down Expand Up @@ -407,15 +409,17 @@ export default class TimetableEditor extends Component<Props, State> {
useSecondsInOffset={useSecondsInOffset} />
<TimetableHeader
activePattern={activePattern}
hideHelpModal={this._hideHelpModal}
showHelpModal={this._showHelpModal}
tripCounts={tripCounts}
removeSelectedRows={this.removeSelectedRows}
addNewRow={this.addNewRow}
offsetWithDefaults={this._offsetWithDefaults}
cloneSelectedTrips={this.cloneSelectedTrips}
showTripSeriesModal={this._showTripSeriesModal}
hideHelpModal={this._hideHelpModal}
offsetWithDefaults={this._offsetWithDefaults}
removeSelectedRows={this.removeSelectedRows}
saveEditedTrips={this.saveEditedTrips}
showHelpModal={this._showHelpModal}
showTripSeriesModal={this._showTripSeriesModal}
toggleDepartureTimes={toggleDepartureTimes}
toggleUseSeconds={toggleUseSeconds}
tripCounts={tripCounts}
{...this.props} />
{activeSchedule
? <Timetable
Expand Down

0 comments on commit 48ff8db

Please sign in to comment.