Skip to content

Commit

Permalink
Updated cleave.js to cleave-zen
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandoGraterol committed Mar 8, 2024
1 parent 96aaa19 commit aa11b71
Show file tree
Hide file tree
Showing 30 changed files with 223 additions and 391 deletions.
37 changes: 9 additions & 28 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"@storybook/testing-library": "^0.0.14-next.2",
"@svgr/webpack": "^5.4.0",
"@testing-library/cypress": "^8.0.2",
"@types/cleave.js": "^1.4.7",
"@types/dompurify": "^3.0.5",
"@types/enzyme": "^3.10.3",
"@types/jest": "^26.0.0",
Expand Down Expand Up @@ -202,7 +201,7 @@
"bn.js": "^5.1.1",
"camelcase": "^6.0.0",
"classnames": "^2.2.6",
"cleave.js": "1.4.10",
"cleave-zen": "^0.0.17",
"clsx": "^1.2.1",
"constants-browserify": "^1.0.0",
"copy-to-clipboard": "^3.0.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const BalanceModal: FC<PropsWithChildren<BalanceModalProps>> = ({
name="amount"
placeholder="0"
options={{
numeral: true,
numeralDecimalScale: undefined,
numeralPositiveOnly: true,
rawValueTrimPrefix: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const displayName =

export const MintTokensDescription = () => {
const formValues = useFormContext<MintTokenFormValues>().getValues();
const { amount: { amount } = {} } = formValues;
const { amount } = formValues;
const {
colony: { nativeToken },
} = useColonyContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const displayName =
export const SimplePaymentDescription = () => {
const formValues = useFormContext<SimplePaymentFormValues>().getValues();
const { colony } = useColonyContext();
const { amount: { amount, tokenAddress } = {}, recipient } = formValues;
const { amount, tokenAddress, recipient } = formValues;

const { nativeToken } = colony;
const matchingColonyToken = colony.tokens?.items.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const TransferFundsDescription = () => {
} = useColonyContext();
const formValues = useFormContext<TransferFundsFormValues>().getValues();

const { amount: { amount, tokenAddress } = {}, from, to } = formValues;
const { amount, tokenAddress, from, to } = formValues;

const fromDomain = domains?.items.find((domain) => domain?.nativeId === from);
const toDomain = domains?.items.find((domain) => domain?.nativeId === to);
Expand Down
Loading

0 comments on commit aa11b71

Please sign in to comment.