-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a06bb0
commit 3c67837
Showing
3 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Menu, MenuButton, MenuList, MenuItem } from '@chakra-ui/react' | ||
import { TrashIcon } from 'assets/icons' | ||
import React from 'react' | ||
|
||
type Props = { | ||
isOpen: boolean | ||
position: { x: number; y: number } | ||
onDeleteEdge: () => void | ||
onClose: () => void | ||
} | ||
|
||
export const EdgeMenu = ({ | ||
isOpen, | ||
onClose, | ||
position, | ||
onDeleteEdge, | ||
}: Props) => { | ||
return ( | ||
<Menu isOpen={isOpen} gutter={0} onClose={onClose} isLazy> | ||
<MenuButton | ||
aria-hidden={true} | ||
w={1} | ||
h={1} | ||
pos="absolute" | ||
style={{ | ||
left: position.x, | ||
top: position.y, | ||
}} | ||
/> | ||
<MenuList> | ||
<MenuItem icon={<TrashIcon />} onClick={onDeleteEdge}> | ||
Delete | ||
</MenuItem> | ||
</MenuList> | ||
</Menu> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3c67837
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app
3c67837
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
bot.matthesv.de
demo.wemakebots.xyz
bot.outstandbrand.com
zap.fundviser.in
chat.hayuri.id
app.yvon.earth
88584434.therpm.club
viewer.typebot.io
chat.matthesv.de
92109660.therpm.club
criar.somaperuzzo.com
typebot-viewer.vercel.app
bot.pratikmandalia.com
link.venturasuceder.com
bot.adventureconsulting.hu
bot.pinpointinteractive.com
chat.thehomebuyersusa.com
tarian.theiofoundation.org
chat.atlasoutfittersk9.com
viewer-v2-typebot-io.vercel.app
viewer-v2-git-main-typebot-io.vercel.app