diff --git a/frontend/src/features/admin-form/create/logic/components/LogicContent/InactiveLogicBlock/InactiveLogicBlock.tsx b/frontend/src/features/admin-form/create/logic/components/LogicContent/InactiveLogicBlock/InactiveLogicBlock.tsx
index 595014af0d..e97f1ab6b1 100644
--- a/frontend/src/features/admin-form/create/logic/components/LogicContent/InactiveLogicBlock/InactiveLogicBlock.tsx
+++ b/frontend/src/features/admin-form/create/logic/components/LogicContent/InactiveLogicBlock/InactiveLogicBlock.tsx
@@ -1,13 +1,6 @@
import { useCallback, useMemo } from 'react'
-import { BiTrash } from 'react-icons/bi'
-import {
- Box,
- chakra,
- Divider,
- Stack,
- StackDivider,
- Text,
-} from '@chakra-ui/react'
+import { BiPencil } from 'react-icons/bi'
+import { Box, Divider, Stack, StackDivider, Text } from '@chakra-ui/react'
import { LogicDto, LogicType } from '~shared/types/form'
@@ -26,12 +19,10 @@ import { LogicConditionValues } from './LogicConditionValues'
interface InactiveLogicBlockProps {
logic: LogicDto
- handleOpenDeleteModal: () => void
}
export const InactiveLogicBlock = ({
logic,
- handleOpenDeleteModal,
}: InactiveLogicBlockProps): JSX.Element | null => {
const { idToFieldMap } = useAdminFormLogic()
const setToEditing = useAdminLogicStore(setToEditingSelector)
@@ -98,29 +89,15 @@ export const InactiveLogicBlock = ({
return (
-
{renderThenContent}
-
+
}
+ onClick={handleClick}
+ icon={}
+ cursor={isPreventEdit ? 'not-allowed' : 'pointer'}
+ aria-disabled={isPreventEdit}
/>
)
diff --git a/frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlockFactory/LogicBlockFactory.tsx b/frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlockFactory/LogicBlockFactory.tsx
index ca4a4c7e76..27962ac17c 100644
--- a/frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlockFactory/LogicBlockFactory.tsx
+++ b/frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlockFactory/LogicBlockFactory.tsx
@@ -40,10 +40,7 @@ export const LogicBlockFactory = ({
handleOpenDeleteModal={onDeleteModalOpen}
/>
) : (
-
+
)}
>
)