🐛 fix(types): Checking

This commit is contained in:
web@ppanel
2024-11-26 19:21:37 +07:00
parent c7e50a9b84
commit 2992824353
34 changed files with 2085 additions and 3150 deletions
@@ -68,6 +68,7 @@ export default function UserCheckForm({
clearTimeout(typingTimeoutRef.current);
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return (
@@ -448,7 +448,7 @@ export default function SubscribeForm<T extends Record<string, any>>({
max: 100,
placeholder: t('form.discountPercent'),
suffix: '%',
calculateValue: (data) => {
calculateValue: function (data) {
const { unit_price } = form.getValues();
return {
...data,
@@ -466,7 +466,7 @@ export default function SubscribeForm<T extends Record<string, any>>({
formatInput: (value) => unitConversion('centsToDollars', value),
formatOutput: (value) => unitConversion('dollarsToCents', value),
internal: true,
calculateValue: (data) => {
calculateValue: function (data) {
const { unit_price } = form.getValues();
return {
...data,