-
Notifications
You must be signed in to change notification settings - Fork 56
remove time spent active #1389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove time spent active #1389
Conversation
<TripDetails className="percy-hide" itinerary={itinerary} /> | ||
<TripDetails | ||
className="percy-hide" | ||
displayTimeActive={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be configurable/displayed by default!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. I forgot to pull the config value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be a bother but since this is such a simple feature might it be better to disable this via css? I think a prop to hide a single row is clutter. Could we not just patch otp-ui to add a class name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dupe of #1394?
Definitely a dupe of #1394. Which one do we like better? @miles-grant-ibigroup @daniel-heppner-ibigroup |
Sorry but I like mine better because it passes in the config items with the other config stuff in the connect function. However I'm kinda with Miles that we should just do this with a CSS class. |
@daniel-heppner-ibigroup You have a cleaner solution so lets use your PR. The |
I kinda feel like if we're going to have a config item for this, we should just go all the way and make it an array where you can specify all the items that get displayed in Trip Details. Like tripDetailsItems: ['fare', 'co2', 'timeActive', 'duration'] |
@daniel-heppner-ibigroup that is a better long term solution. Can we use this as a stopgap for now and clean up the props/trip-details component in a future PR? |
Can we do the CSS approach instead? I really want to stop using these props |
yeah I will implement css. like this? @miles-grant-ibigroup
|
Eeek! No! I meant more adding a |
closing in favor of opentripplanner/otp-ui#841 |
Description:
Removes the time spent active information in the trip preview layout
PR Checklist: