diff --git a/src/components/admin/store/ItemDetailsForm/index.tsx b/src/components/admin/store/ItemDetailsForm/index.tsx index 923afc0a..66f3ef9f 100644 --- a/src/components/admin/store/ItemDetailsForm/index.tsx +++ b/src/components/admin/store/ItemDetailsForm/index.tsx @@ -374,140 +374,142 @@ const ItemDetailsForm = ({ mode, defaultData, token, collections }: IProps) => { - - - - {options.length > 1 && ( - <> - - - )} - - - - {options.length > 1 && } - - - - - {(props, option, i) => ( - - {options.length > 1 && ( - <> - - + )} + + )} + + + + + + + +
- - setOptionType(e.currentTarget.value)} - /> - PriceQuantityPercent discountRemove
- - - - setOptions( - options.map((option, index) => - index === i ? { ...option, value: e.currentTarget.value } : option +
+ 1 ? style.multipleOptions : ''}`}> + + + {options.length > 1 && ( + <> + + + )} + + + + {options.length > 1 && } + + + + + {(props, option, i) => ( + + {options.length > 1 && ( + <> + + + + )} + - - )} - - - + - {options.length > 1 && ( + } + /> + - )} - - )} - - - - - - - -
+ + setOptionType(e.currentTarget.value)} + /> + PriceQuantityPercent discountRemove
+ + + + setOptions( + options.map((option, index) => + index === i ? { ...option, value: e.currentTarget.value } : option + ) ) + } + /> + + + setOptions( + options.map((option, index) => + index === i ? { ...option, price: e.currentTarget.value } : option ) - } - /> - - - setOptions( - options.map((option, index) => - index === i ? { ...option, price: e.currentTarget.value } : option ) - ) - } - /> - - - setOptions( - options.map((option, index) => - index === i ? { ...option, quantity: e.currentTarget.value } : option - ) - ) - } - /> - - - setOptions( - options.map((option, index) => - index === i - ? { ...option, discountPercentage: e.currentTarget.value } - : option + } + /> + + + setOptions( + options.map((option, index) => + index === i ? { ...option, quantity: e.currentTarget.value } : option + ) ) - ) - } - /> - - + + setOptions( + options.map((option, index) => + index === i + ? { ...option, discountPercentage: e.currentTarget.value } + : option + ) + ) + } + />
- -
+ {options.length > 1 && ( +
+ +
+ +
+