Skip to content

Commit

Permalink
Fixed what was necessary to upgrade react-number-format. Didn't have …
Browse files Browse the repository at this point in the history
…time to properly replace this (as we seem to use it solely for the thousands separator) as I suggested elsewhere. Nevertheless, closes #1207.
  • Loading branch information
jacobwod committed Aug 17, 2023
1 parent 43dcb9b commit c591e92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions new-client/package-lock.json

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

4 changes: 2 additions & 2 deletions new-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"react-event-observer": "^0.5.11",
"react-horizontal-scrolling-menu": "^0.7.8",
"react-markdown": "^8.0.7",
"react-number-format": "^4.9.4",
"react-number-format": "^5.3.0",
"react-rnd": "^10.4.1",
"react-scroll": "^1.8.9",
"rehype-raw": "^6.1.1",
Expand All @@ -86,4 +86,4 @@
"x2js": "^3.4.4",
"xlsx": "^0.18.5"
}
}
}
6 changes: 3 additions & 3 deletions new-client/src/plugins/Coordinates/CoordinatesTransformRow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Typography from "@mui/material/Typography";
import TextField from "@mui/material/TextField";
import NumberFormat from "react-number-format";
import { NumericFormat } from "react-number-format";
import { transform } from "ol/proj";
import { withSnackbar } from "notistack";
import Grid from "@mui/material/Grid";
Expand Down Expand Up @@ -187,7 +187,7 @@ class CoordinatesTransformRow extends React.PureComponent {
</Typography>
</Grid>
<Grid item xs={12} md={6}>
<NumberFormat
<NumericFormat
label={this.props.transformation.xtitle}
margin="dense"
variant="outlined"
Expand All @@ -207,7 +207,7 @@ class CoordinatesTransformRow extends React.PureComponent {
/>
</Grid>
<Grid item xs={12} md={6}>
<NumberFormat
<NumericFormat
label={this.props.transformation.ytitle}
margin="dense"
size="small"
Expand Down

0 comments on commit c591e92

Please sign in to comment.