From 6e370c3502a8e6474d4665eb42ae1bfdec3034a1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Feb 2024 09:43:29 -0300 Subject: wip #8325 remove rewards --- .../merchant-backoffice-ui/src/schemas/index.ts | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/schemas/index.ts') diff --git a/packages/merchant-backoffice-ui/src/schemas/index.ts b/packages/merchant-backoffice-ui/src/schemas/index.ts index c97d41204..5d168d6ac 100644 --- a/packages/merchant-backoffice-ui/src/schemas/index.ts +++ b/packages/merchant-backoffice-ui/src/schemas/index.ts @@ -124,27 +124,6 @@ export const InstanceSchema = yup.object().shape({ export const InstanceUpdateSchema = InstanceSchema.clone().omit(["id"]); export const InstanceCreateSchema = InstanceSchema.clone(); -export const AuthorizeRewardSchema = yup.object().shape({ - justification: yup.string().required(), - amount: yup - .string() - .required() - .test("amount", "the amount is not valid", currencyWithAmountIsValid) - .test("amount_positive", "the amount is not valid", currencyGreaterThan0), - next_url: yup.string().required(), -}); - -const stringIsValidJSON = (value?: string) => { - const p = value?.trim(); - if (!p) return true; - try { - JSON.parse(p); - return true; - } catch { - return false; - } -}; - export const OrderCreateSchema = yup.object().shape({ pricing: yup .object() -- cgit v1.2.3