diff --git a/frontend/src/app-components/inputs/MultipleInput.tsx b/frontend/src/app-components/inputs/MultipleInput.tsx index 17c73a38..df2755b9 100644 --- a/frontend/src/app-components/inputs/MultipleInput.tsx +++ b/frontend/src/app-components/inputs/MultipleInput.tsx @@ -6,8 +6,8 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ +import { RemoveCircleOutline } from "@mui/icons-material"; import AddIcon from "@mui/icons-material/Add"; -import DeleteIcon from "@mui/icons-material/Delete"; import { Box, Button, @@ -130,12 +130,6 @@ const MultipleInput = forwardRef( gap={1} mb={1} > - handleRemoveInput(input.id)} - disabled={inputs.length <= minInput} - > - - ( }} fullWidth /> + handleRemoveInput(input.id)} + disabled={inputs.length <= minInput} + > + + ))} = ({ return ( - -   - {t("label.type")} @@ -90,16 +87,11 @@ const ButtonsInput: FC = ({ {t("label.webview")} + +   + {buttons.map(({ value, id }, idx) => ( - - removeInput(idx)} - disabled={buttons.length <= minInput} - > - - - = ({ onChange={updateInput(idx)} disablePayload={disablePayload} /> + + removeInput(idx)} + disabled={buttons.length <= minInput} + > + + + ))} diff --git a/frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx b/frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx index 8057ec96..c2b4ae60 100644 --- a/frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx @@ -6,8 +6,8 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ +import { RemoveCircleOutline } from "@mui/icons-material"; import AddIcon from "@mui/icons-material/Add"; -import DeleteIcon from "@mui/icons-material/Delete"; import { Box, Button, Grid, IconButton } from "@mui/material"; import { FC, Fragment, useEffect, useState } from "react"; @@ -71,9 +71,6 @@ const QuickRepliesInput: FC = ({ return ( - -   - {t("label.type")} @@ -84,22 +81,26 @@ const QuickRepliesInput: FC = ({ {t("label.payload")} + +   + {quickReplies.map(({ value, id }, idx) => ( - - removeInput(idx)} - disabled={quickReplies.length <= minInput} - > - - - + + removeInput(idx)} + disabled={quickReplies.length <= minInput} + > + + + ))}