Septa Fare Calculator - Jonathan Bui #183
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Septa Fare Calculator - Jonathan Bui
Time Spent
In total I spent close to 2 hours on this with roughly half my time spent on developing the view and the other half on integrating
fares.jsonand implementing calculation logicTechnologies Used
Setup
npm installnpm run startlocalhost:3000to view Septa Fare CalculatorRoom For Improvement
RadioButtonGroup.jsxwhich has logic specific to handling when a user selects their trip type as 'anytime'. This can be refactored so the logic is in the parent andRadioButtonGroup.jsxcan become a general component that can be shared in other applicationsstyled-componentsthemes to store commonly used variables such as colorFares.jsonso that it's structure is more compatible with the design specprop-typesto ensure components use the correct data type and pass the right data