feat: add custom file/image to the wizard
This commit is contained in:
parent
c31005d6ef
commit
53f32ba49b
5 changed files with 131 additions and 36 deletions
|
|
@ -256,21 +256,25 @@ const CustomerData = ({ customer, updateCustomer }) => {
|
|||
}
|
||||
]
|
||||
|
||||
const editableCard = ({
|
||||
title,
|
||||
authorize,
|
||||
reject,
|
||||
state,
|
||||
titleIcon,
|
||||
data,
|
||||
save,
|
||||
children,
|
||||
validationSchema,
|
||||
initialValues
|
||||
}) => {
|
||||
const editableCard = (
|
||||
{
|
||||
title,
|
||||
authorize,
|
||||
reject,
|
||||
state,
|
||||
titleIcon,
|
||||
data,
|
||||
save,
|
||||
children,
|
||||
validationSchema,
|
||||
initialValues
|
||||
},
|
||||
idx
|
||||
) => {
|
||||
return (
|
||||
<EditableCard
|
||||
title={title}
|
||||
key={idx}
|
||||
authorize={authorize}
|
||||
reject={reject}
|
||||
state={state}
|
||||
|
|
@ -308,12 +312,12 @@ const CustomerData = ({ customer, updateCustomer }) => {
|
|||
<Grid container>
|
||||
<Grid container direction="column" item xs={6}>
|
||||
{visibleCards.map((elem, idx) => {
|
||||
return isEven(idx) ? editableCard(elem) : null
|
||||
return isEven(idx) ? editableCard(elem, idx) : null
|
||||
})}
|
||||
</Grid>
|
||||
<Grid container direction="column" item xs={6}>
|
||||
{visibleCards.map((elem, idx) => {
|
||||
return !isEven(idx) ? editableCard(elem) : null
|
||||
return !isEven(idx) ? editableCard(elem, idx) : null
|
||||
})}
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue