Skip to content

Commit

Permalink
Merge pull request #566 from entur/upgrade-prettier
Browse files Browse the repository at this point in the history
Upgrade prettier to 2.8.8
  • Loading branch information
testower authored Dec 27, 2023
2 parents 49bd1e0 + cce71c1 commit 183f90f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"firebase-tools": "13.0.2",
"graphql-request": "4.3.0",
"husky": "8.0.3",
"prettier": "2.7.1",
"prettier": "2.8.8",
"react-scripts": "5.0.1",
"redux-devtools": "3.7.0",
"source-map-explorer": "2.5.3",
Expand Down
21 changes: 11 additions & 10 deletions src/components/EditParentStopPage/StopPlaceListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,17 @@ class StopPlaceListItem extends Component {
style={{ marginTop: -8, marginRight: 5 }}
/>
)}
{stopPlace.adjacentSites && stopPlace.adjacentSites.length > 0 && (
<EditorInsertLink
style={{
marginLeft: -15,
marginTop: -15,
marginRight: 5,
transform: "scale(0.6)",
}}
/>
)}
{stopPlace.adjacentSites &&
stopPlace.adjacentSites.length > 0 && (
<EditorInsertLink
style={{
marginLeft: -15,
marginTop: -15,
marginRight: 5,
transform: "scale(0.6)",
}}
/>
)}
<div style={{ fontSize: "0.8em" }}>{stopPlace.name}</div>
</div>
<StopPlaceLink
Expand Down
14 changes: 8 additions & 6 deletions src/models/columnTransformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ export const ColumnTransformerStopPlaceJsx = {
: formatMessage({ id: "childStopPlace" })}
</span>
)}
{stop.validBetween && stop.validBetween.toDate && !isFutureOrExpired && (
<span style={{ ...infoTextStyle, color: "#ffa500" }}>
{formatMessage({ id: "expires" })}{" "}
{moment(stop.validBetween.toDate).format("YYYY-MM-DD")}
</span>
)}
{stop.validBetween &&
stop.validBetween.toDate &&
!isFutureOrExpired && (
<span style={{ ...infoTextStyle, color: "#ffa500" }}>
{formatMessage({ id: "expires" })}{" "}
{moment(stop.validBetween.toDate).format("YYYY-MM-DD")}
</span>
)}
</div>
</div>
);
Expand Down

0 comments on commit 183f90f

Please sign in to comment.