From 4aa9119d8b4408d0d621adc3ab1cf431c89c609e Mon Sep 17 00:00:00 2001 From: Hemik Vijay Date: Sat, 30 Dec 2023 14:18:34 +0530 Subject: [PATCH 1/2] add: commant button for small screen device --- src/components/command-menu.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/command-menu.tsx b/src/components/command-menu.tsx index 0149258baf42a..db533bdf56795 100644 --- a/src/components/command-menu.tsx +++ b/src/components/command-menu.tsx @@ -11,6 +11,8 @@ import { CommandList, CommandSeparator, } from "@/components/ui/command"; +import { Button } from "./ui/button"; +import { CommandIcon } from "lucide-react"; interface Props { links: { url: string; title: string }[]; @@ -33,13 +35,21 @@ export const CommandMenu = ({ links }: Props) => { return ( <> -

+

Press{" "} J {" "} to open the command menu

+ From a2594a0173c45aa84f61d3f8c7fb92ce8ee4d193 Mon Sep 17 00:00:00 2001 From: Hemik Vijay Date: Sun, 31 Dec 2023 09:06:05 +0530 Subject: [PATCH 2/2] removed {} from the props --- src/components/command-menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/command-menu.tsx b/src/components/command-menu.tsx index db533bdf56795..5a22b97079836 100644 --- a/src/components/command-menu.tsx +++ b/src/components/command-menu.tsx @@ -44,8 +44,8 @@ export const CommandMenu = ({ links }: Props) => {