Skip to content

Commit

Permalink
update trash icon to pencil icon, remove delete functionality in Inac…
Browse files Browse the repository at this point in the history
…tiveStepBlock
  • Loading branch information
scottheng96 committed Nov 13, 2024
1 parent b23dce1 commit ae4db1d
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback, useMemo } from 'react'
import { BiTrash } from 'react-icons/bi'
import { BiPencil } from 'react-icons/bi'
import { Box, chakra, Flex, Stack, Text } from '@chakra-ui/react'
import { Dictionary } from 'lodash'

Expand Down Expand Up @@ -61,7 +61,6 @@ const SubsequentStepRespondentBadges = ({
export const InactiveStepBlock = ({
stepNumber,
step,
handleOpenDeleteModal,
}: InactiveStepBlockProps): JSX.Element | null => {
const { idToFieldMap } = useAdminFormWorkflow()
const setToEditing = useAdminWorkflowStore(setToEditingSelector)
Expand Down Expand Up @@ -190,16 +189,16 @@ export const InactiveStepBlock = ({
) : null}
</Stack>
</chakra.button>
{!isFirstStep && (
{(

Check failure on line 192 in frontend/src/features/admin-form/create/workflow/components/WorkflowContent/InactiveStepBlock/InactiveStepBlock.tsx

View workflow job for this annotation

GitHub Actions / frontend_lint

Delete `(`

Check failure on line 192 in frontend/src/features/admin-form/create/workflow/components/WorkflowContent/InactiveStepBlock/InactiveStepBlock.tsx

View workflow job for this annotation

GitHub Actions / frontend_lint

Delete `(`
<IconButton
top={{ base: '0.5rem', md: '2rem' }}
right={{ base: '0.5rem', md: '2rem' }}
pos="absolute"
aria-label="Delete step"
aria-label="Click to edit"
variant="clear"
colorScheme="danger"
onClick={handleOpenDeleteModal}
icon={<BiTrash fontSize="1.5rem" />}
colorScheme="secondary"
onClick={handleClick}
icon={<BiPencil fontSize="1.5rem" />}
/>
)}

Check failure on line 203 in frontend/src/features/admin-form/create/workflow/components/WorkflowContent/InactiveStepBlock/InactiveStepBlock.tsx

View workflow job for this annotation

GitHub Actions / frontend_lint

Delete `)`

Check failure on line 203 in frontend/src/features/admin-form/create/workflow/components/WorkflowContent/InactiveStepBlock/InactiveStepBlock.tsx

View workflow job for this annotation

GitHub Actions / frontend_lint

Delete `)`
</Box>
Expand Down

0 comments on commit ae4db1d

Please sign in to comment.