fix: add crisp chat with us option in cmdk (#570)

This commit is contained in:
Saheb Giri 2023-03-29 11:53:09 +05:30 committed by GitHub
parent e07ffc3a46
commit c60b152a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,9 @@ import useSWR, { mutate } from "swr";
import { import {
ArrowRightIcon, ArrowRightIcon,
ChartBarIcon, ChartBarIcon,
ChatBubbleOvalLeftEllipsisIcon,
ClipboardIcon, ClipboardIcon,
FolderPlusIcon, FolderPlusIcon,
InboxIcon,
MagnifyingGlassIcon, MagnifyingGlassIcon,
Squares2X2Icon, Squares2X2Icon,
TrashIcon, TrashIcon,
@ -756,14 +756,14 @@ export const CommandPalette: React.FC = () => {
<Command.Item <Command.Item
onSelect={() => { onSelect={() => {
setIsPaletteOpen(false); setIsPaletteOpen(false);
window.open("mailto:hello@plane.so", "_blank"); (window as any).$crisp.push(["do", "chat:open"]);
}} }}
className="focus:bg-slate-200 focus:outline-none" className="focus:bg-slate-200 focus:outline-none"
tabIndex={0} tabIndex={0}
> >
<div className="flex items-center gap-2 text-slate-700"> <div className="flex items-center gap-2 text-slate-700">
<InboxIcon className="h-4 w-4" /> <ChatBubbleOvalLeftEllipsisIcon className="h-4 w-4" />
Email us Chat with us
</div> </div>
</Command.Item> </Command.Item>
</Command.Group> </Command.Group>