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

Update cleave.js to cleave-zen #2026

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading