Added form list moving to all lists. BOD-242
This commit is contained in:
@@ -214,7 +214,7 @@ export default function ShopInfoComponent({ form, saveLoading }) {
|
||||
</Form.Item>
|
||||
</LayoutFormRow>
|
||||
<Form.List name={["md_messaging_presets"]}>
|
||||
{(fields, { add, remove }) => {
|
||||
{(fields, { add, remove, move }) => {
|
||||
return (
|
||||
<div>
|
||||
{fields.map((field, index) => (
|
||||
@@ -256,6 +256,11 @@ export default function ShopInfoComponent({ form, saveLoading }) {
|
||||
remove(field.name);
|
||||
}}
|
||||
/>
|
||||
<FormListMoveArrows
|
||||
move={move}
|
||||
index={index}
|
||||
total={fields.length}
|
||||
/>
|
||||
</div>
|
||||
</Form.Item>
|
||||
))}
|
||||
@@ -276,7 +281,7 @@ export default function ShopInfoComponent({ form, saveLoading }) {
|
||||
</Form.List>
|
||||
|
||||
<Form.List name={["md_notes_presets"]}>
|
||||
{(fields, { add, remove }) => {
|
||||
{(fields, { add, remove, move }) => {
|
||||
return (
|
||||
<div>
|
||||
{fields.map((field, index) => (
|
||||
@@ -318,6 +323,11 @@ export default function ShopInfoComponent({ form, saveLoading }) {
|
||||
remove(field.name);
|
||||
}}
|
||||
/>
|
||||
<FormListMoveArrows
|
||||
move={move}
|
||||
index={index}
|
||||
total={fields.length}
|
||||
/>
|
||||
</div>
|
||||
</Form.Item>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user