|
@@ -141,7 +141,7 @@ const RecipeForm = <T extends Recipe|DBRecipe>({ initialValues, onSubmit }: Reci
|
|
|
<h5>Recipe Information</h5>
|
|
<h5>Recipe Information</h5>
|
|
|
<section>
|
|
<section>
|
|
|
<Row>
|
|
<Row>
|
|
|
- <Cell columns={3}>
|
|
|
|
|
|
|
+ <Cell columns={2}>
|
|
|
{/* <FormikInput name='details.preparationTime' label='preparation time' /> */}
|
|
{/* <FormikInput name='details.preparationTime' label='preparation time' /> */}
|
|
|
<DurationPicker
|
|
<DurationPicker
|
|
|
initialValue={values.details.preparationTime}
|
|
initialValue={values.details.preparationTime}
|
|
@@ -149,19 +149,22 @@ const RecipeForm = <T extends Recipe|DBRecipe>({ initialValues, onSubmit }: Reci
|
|
|
label='preparation time'
|
|
label='preparation time'
|
|
|
/>
|
|
/>
|
|
|
</Cell>
|
|
</Cell>
|
|
|
- <Cell columns={3}>
|
|
|
|
|
|
|
+ <Cell columns={2}>
|
|
|
<DurationPicker
|
|
<DurationPicker
|
|
|
initialValue={values.details.cookingTime}
|
|
initialValue={values.details.cookingTime}
|
|
|
onChange={(duration)=>{ setFieldValue('details.cookingTime', duration)}}
|
|
onChange={(duration)=>{ setFieldValue('details.cookingTime', duration)}}
|
|
|
label='cooking time'
|
|
label='cooking time'
|
|
|
/>
|
|
/>
|
|
|
</Cell>
|
|
</Cell>
|
|
|
- <Cell columns={3}>
|
|
|
|
|
|
|
+ <Cell columns={2}>
|
|
|
<FormikInput name='details.servings' label='servings' type='number' />
|
|
<FormikInput name='details.servings' label='servings' type='number' />
|
|
|
</Cell>
|
|
</Cell>
|
|
|
<Cell columns={3}>
|
|
<Cell columns={3}>
|
|
|
<FormikInput name='details.url' label='recipe url' />
|
|
<FormikInput name='details.url' label='recipe url' />
|
|
|
</Cell>
|
|
</Cell>
|
|
|
|
|
+ <Cell columns={3}>
|
|
|
|
|
+ <FormikInput name='details.video' label='recipe video' />
|
|
|
|
|
+ </Cell>
|
|
|
</Row>
|
|
</Row>
|
|
|
<Row>
|
|
<Row>
|
|
|
<Cell columns={12}>
|
|
<Cell columns={12}>
|