Skip to content

Commit ab33f68

Browse files
authored
Merge pull request #116 from boostcampwm-2024/bug-fe-#114
lint 에러 수정
2 parents b8e13e2 + 4a22767 commit ab33f68

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

frontend/src/components/editor/ui/command.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,19 @@ const Command = React.forwardRef<
1515
<CommandPrimitive
1616
ref={ref}
1717
className={cn(
18-
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
18+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1919
className,
2020
)}
2121
{...props}
2222
/>
2323
));
2424
Command.displayName = CommandPrimitive.displayName;
2525

26-
interface CommandDialogProps extends DialogProps {}
27-
28-
const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
26+
const CommandDialog = ({ children, ...props }: DialogProps) => {
2927
return (
3028
<Dialog {...props}>
3129
<DialogContent className="overflow-hidden p-0 shadow-lg">
32-
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
30+
<Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
3331
{children}
3432
</Command>
3533
</DialogContent>
@@ -46,7 +44,7 @@ const CommandInput = React.forwardRef<
4644
<CommandPrimitive.Input
4745
ref={ref}
4846
className={cn(
49-
"placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
47+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
5048
className,
5149
)}
5250
{...props}
@@ -89,7 +87,7 @@ const CommandGroup = React.forwardRef<
8987
<CommandPrimitive.Group
9088
ref={ref}
9189
className={cn(
92-
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
90+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
9391
className,
9492
)}
9593
{...props}
@@ -104,7 +102,7 @@ const CommandSeparator = React.forwardRef<
104102
>(({ className, ...props }, ref) => (
105103
<CommandPrimitive.Separator
106104
ref={ref}
107-
className={cn("bg-border -mx-1 h-px", className)}
105+
className={cn("-mx-1 h-px bg-border", className)}
108106
{...props}
109107
/>
110108
));
@@ -117,7 +115,7 @@ const CommandItem = React.forwardRef<
117115
<CommandPrimitive.Item
118116
ref={ref}
119117
className={cn(
120-
"aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
118+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
121119
className,
122120
)}
123121
{...props}
@@ -133,7 +131,7 @@ const CommandShortcut = ({
133131
return (
134132
<span
135133
className={cn(
136-
"text-muted-foreground ml-auto text-xs tracking-widest",
134+
"ml-auto text-xs tracking-widest text-muted-foreground",
137135
className,
138136
)}
139137
{...props}

0 commit comments

Comments
 (0)