From 5bc4283b2df1c40ea39f765a8f27949492060de7 Mon Sep 17 00:00:00 2001 From: alaca Date: Mon, 16 Sep 2024 12:55:06 +0200 Subject: [PATCH] refactor: update prop names --- .../Tabs/Settings/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Campaigns/resources/admin/components/CampaignDetailsPage/Tabs/Settings/index.tsx b/src/Campaigns/resources/admin/components/CampaignDetailsPage/Tabs/Settings/index.tsx index 716f87aa87..f90b5bb366 100644 --- a/src/Campaigns/resources/admin/components/CampaignDetailsPage/Tabs/Settings/index.tsx +++ b/src/Campaigns/resources/admin/components/CampaignDetailsPage/Tabs/Settings/index.tsx @@ -4,11 +4,11 @@ import {joiResolver} from '@hookform/resolvers/joi'; import {getValidationSchema} from '../../../../utils'; type FormInputs = { - campaignTitle: string; + title: string; longDescription: string; - campaignImage: string; - campaignGoalType: string; - campaignGoal: number; + image: string; + goalType: string; + goal: number; }; type PropTypes = { @@ -21,11 +21,11 @@ type PropTypes = { export default ({defaultValues}: PropTypes) => { const validationSchema = getValidationSchema({ - campaignTitle: Joi.string().required(), + title: Joi.string().required(), longDescription: Joi.string(), - campaignImage: Joi.string(), - campaignGoalType: Joi.string().required(), - campaignGoal: Joi.number().required(), + image: Joi.string(), + goalType: Joi.string().required(), + goal: Joi.number().required(), }); const {handleSubmit, control} = useForm({ @@ -41,7 +41,7 @@ export default ({defaultValues}: PropTypes) => { return (
- + Campaign settings
)