Skip to content

Commit

Permalink
HELP-6391: fix outstanding vulnerabilities in ORCS (#228)
Browse files Browse the repository at this point in the history
* HELP-6391: fix outstanding critical vulnerability that was missed yesterday (somehow)

See https://github.com/orchestrated-io/orcs-design-system/security/dependabot/51

To allow the 'overrides' section of package.json you need Node 16.x and NPM > v8.3
React 18.x means that react-dates is no longer compatible. Use --legacy-peer-deps to install. See react-dates/react-dates#2199

'storybook-deployer' is EOL - see https://github.com/storybook-eol/storybook-deployer

* HELP-6391: migrate to react-number-format 5.x

See https://s-yadav.github.io/react-number-format/docs/migration/
  • Loading branch information
wtfiwtz authored and abottega committed Sep 12, 2023
1 parent 45cce92 commit 2eb11af
Show file tree
Hide file tree
Showing 3 changed files with 23,170 additions and 42,775 deletions.
4 changes: 2 additions & 2 deletions lib/components/TextInput/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useMemo } from "react";
import NumberFormat from "react-number-format";
import { NumericFormat } from "react-number-format";
import PropTypes from "prop-types";
import styled, { css } from "styled-components";
import { space, layout, compose } from "styled-system";
Expand Down Expand Up @@ -220,7 +220,7 @@ const Input = styled("input").attrs((props) => ({
${InputStyle}
`;

const NumberInput = styled(NumberFormat).attrs((props) => ({
const NumberInput = styled(NumericFormat).attrs((props) => ({
"data-testid": props["data-testid"] ? props["data-testid"] : null
}))`
${InputStyle}
Expand Down

0 comments on commit 2eb11af

Please sign in to comment.