Skip to content

Commit

Permalink
chore(accordion): remove drawer code
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Mar 14, 2024
1 parent d0fb171 commit d6a2715
Showing 1 changed file with 1 addition and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Box, HStack, Icon, IconButton, Tooltip } from "@chakra-ui/react"
import { NodeViewContent, NodeViewProps } from "@tiptap/react"
import { BiPencil, BiPlus, BiTrash } from "react-icons/bi"

import { useEditorDrawerContext } from "contexts/EditorDrawerContext"
import { BiPlus, BiTrash } from "react-icons/bi"

import { BlockWrapper } from "../../components/BlockWrapper"

Expand All @@ -16,11 +14,6 @@ export const IsomerDetailGroupView = ({
const activePos = editor.state.selection.anchor
const selected = activePos >= startPos && activePos <= endPos

const { onDrawerOpen } = useEditorDrawerContext()

// todo: get drawer reviewed in staging
const isProd = process.env.REACT_APP_ENV === "production"

const otherButtons = (
<>
<Box
Expand All @@ -40,30 +33,6 @@ export const IsomerDetailGroupView = ({
mr="-0.5rem"
mt="-1.5rem"
>
{!isProd && (
<Tooltip label="Edit accordion block" hasArrow placement="top">
<IconButton
_hover={{ bg: "gray.100" }}
_active={{ bg: "gray.200" }}
onClick={onDrawerOpen("accordion")}
bgColor="transparent"
border="none"
h="1.75rem"
w="1.75rem"
minH="1.75rem"
minW="1.75rem"
p="0.25rem"
aria-label="edit accordion block"
>
<Icon
as={BiPencil}
fontSize="1.25rem"
color="base.content.medium"
/>
</IconButton>
</Tooltip>
)}

<Tooltip label="Delete accordion block" hasArrow placement="top">
<IconButton
_hover={{ bg: "gray.100" }}
Expand Down

0 comments on commit d6a2715

Please sign in to comment.