Skip to content
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

fix: show correct rail zone names and mobile key styling #36

Merged
merged 4 commits into from
May 5, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix zone name issue (#34)
  • Loading branch information
houbly authored Mar 19, 2021

Verified

This commit was signed with the committer’s verified signature.
joetannenbaum Joe Tannenbaum
commit 6a6d5c1686ce94bbd90a031c4db7c570f7069d03
11 changes: 7 additions & 4 deletions src/components/shared/Result/Result.js
Original file line number Diff line number Diff line change
@@ -42,14 +42,17 @@ const Result = () => {
{stations.map(({ id, stationName, railZone }) => (
<p key={id}>
{stationName} is{' '}
{railZone ? (
{railZone < 6 && (
<>
in <strong>Zone {railZone}</strong>
</>
) : (
<strong>Out of County</strong>
)}
.
{railZone === 6 && (
<>
in <strong>nTrain Zone 5</strong>
</>
)}
{railZone === 7 && <strong>Out of County</strong>}.
</p>
))}
{fullAccessStations.length > 0 && (