From 839d02f5b6bdb3aef5082355a9573bd109327647 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Wed, 15 Feb 2023 11:55:05 +0530 Subject: [PATCH 1/2] fix: search case innsensitive --- apps/app/components/command-palette/shortcuts-modal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/app/components/command-palette/shortcuts-modal.tsx b/apps/app/components/command-palette/shortcuts-modal.tsx index 593c6832438..42e5770b920 100644 --- a/apps/app/components/command-palette/shortcuts-modal.tsx +++ b/apps/app/components/command-palette/shortcuts-modal.tsx @@ -45,9 +45,10 @@ const allShortcuts = shortcuts.map((i) => i.shortcuts).flat(1); export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { const [query, setQuery] = useState(""); - const filteredShortcuts = allShortcuts.filter((shortcut) => - shortcut.description.includes(query.trim()) || query === "" ? true : false + shortcut.description.toLowerCase().includes(query.trim().toLowerCase()) || query === "" + ? true + : false ); useEffect(() => { From 7e2b8fd925aa655793a8a3f621d64bf938b438d2 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Wed, 15 Feb 2023 12:07:43 +0530 Subject: [PATCH 2/2] style: email icon updated --- apps/app/components/workspace/help-section.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/app/components/workspace/help-section.tsx b/apps/app/components/workspace/help-section.tsx index b8ac07e24aa..3b540e19041 100644 --- a/apps/app/components/workspace/help-section.tsx +++ b/apps/app/components/workspace/help-section.tsx @@ -2,14 +2,13 @@ import { useState, useRef, FC } from "react"; import { Transition } from "@headlessui/react"; import Link from "next/link"; // icons -import { ArrowLongLeftIcon } from "@heroicons/react/24/outline"; +import { ArrowLongLeftIcon, InboxIcon } from "@heroicons/react/24/outline"; import { QuestionMarkCircleIcon, BoltIcon, DocumentIcon, DiscordIcon, GithubIcon, - CommentIcon, } from "components/icons"; // hooks import useTheme from "hooks/use-theme"; @@ -34,7 +33,7 @@ const helpOptions = [ { name: "Email us", href: "mailto:hello@plane.so", - Icon: CommentIcon, + Icon: InboxIcon, }, ];