From 619eff2ad760928384d0d6a030ea84280a8b59fd Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 2 Jul 2023 02:17:51 -0700 Subject: [PATCH] Revert Command changes This seems to rely on these specific styles and it works, so we'll leave it alone for now. --- components/common/Command/index.tsx | 34 +++++++---------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/components/common/Command/index.tsx b/components/common/Command/index.tsx index b6d4449c..17fdc643 100644 --- a/components/common/Command/index.tsx +++ b/components/common/Command/index.tsx @@ -20,7 +20,7 @@ interface CommandDialogProps extends DialogProps {} const CommandDialog = ({ children, ...props }: CommandDialogProps) => { return ( - + {children} @@ -34,10 +34,7 @@ const CommandInput = forwardRef<
styles[c]) - )} + className={classNames({ CommandInput: true }, className)} {...props} />
@@ -51,10 +48,7 @@ const CommandList = forwardRef< >(({ className, ...props }, ref) => ( styles[c]) - )} + className={classNames({ CommandList: true }, className)} {...props} /> )) @@ -65,7 +59,7 @@ const CommandEmpty = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >((props, ref) => ( - + )) CommandEmpty.displayName = CommandPrimitive.Empty.displayName @@ -76,10 +70,7 @@ const CommandGroup = forwardRef< >(({ className, ...props }, ref) => ( styles[c]) - )} + className={classNames({ CommandGroup: true }, className)} {...props} /> )) @@ -92,10 +83,7 @@ const CommandSeparator = forwardRef< >(({ className, ...props }, ref) => ( styles[c]) - )} + className={classNames({ CommandSeparator: true }, className)} {...props} /> )) @@ -107,10 +95,7 @@ const CommandItem = forwardRef< >(({ className, ...props }, ref) => ( styles[c]) - )} + className={classNames({ CommandItem: true }, className)} {...props} /> )) @@ -123,10 +108,7 @@ const CommandShortcut = ({ }: React.HTMLAttributes) => { return ( styles[c]) - )} + className={classNames({ CommandShortcut: true }, className)} {...props} /> )