From 14418b52b87cb3f4b1d826b46350bf4be41b7381 Mon Sep 17 00:00:00 2001 From: peeranat-dan Date: Sun, 10 Sep 2023 10:15:08 +0700 Subject: [PATCH 1/2] style: add import type for Command component --- apps/www/registry/default/ui/command.tsx | 2 +- apps/www/registry/new-york/ui/command.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/registry/default/ui/command.tsx b/apps/www/registry/default/ui/command.tsx index dbe7ea017ae..40f34c13c6a 100644 --- a/apps/www/registry/default/ui/command.tsx +++ b/apps/www/registry/default/ui/command.tsx @@ -1,7 +1,7 @@ "use client" import * as React from "react" -import { DialogProps } from "@radix-ui/react-dialog" +import { type DialogProps } from "@radix-ui/react-dialog" import { Command as CommandPrimitive } from "cmdk" import { Search } from "lucide-react" diff --git a/apps/www/registry/new-york/ui/command.tsx b/apps/www/registry/new-york/ui/command.tsx index 895b58dd281..286b2b5eb5c 100644 --- a/apps/www/registry/new-york/ui/command.tsx +++ b/apps/www/registry/new-york/ui/command.tsx @@ -1,7 +1,7 @@ "use client" import * as React from "react" -import { DialogProps } from "@radix-ui/react-dialog" +import { type DialogProps } from "@radix-ui/react-dialog" import { MagnifyingGlassIcon } from "@radix-ui/react-icons" import { Command as CommandPrimitive } from "cmdk" From ea1346ce051631293a828729ac935e3002ff27d9 Mon Sep 17 00:00:00 2001 From: peeranat-dan Date: Sun, 12 Nov 2023 20:08:08 +0700 Subject: [PATCH 2/2] style(code): format code --- apps/www/registry/default/ui/scroll-area.tsx | 4 +--- apps/www/registry/new-york/ui/scroll-area.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/www/registry/default/ui/scroll-area.tsx b/apps/www/registry/default/ui/scroll-area.tsx index cc6c8f50b2e..0b4a48d87fa 100644 --- a/apps/www/registry/default/ui/scroll-area.tsx +++ b/apps/www/registry/default/ui/scroll-area.tsx @@ -40,9 +40,7 @@ const ScrollBar = React.forwardRef< )} {...props} > - + )) ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName diff --git a/apps/www/registry/new-york/ui/scroll-area.tsx b/apps/www/registry/new-york/ui/scroll-area.tsx index cc6c8f50b2e..0b4a48d87fa 100644 --- a/apps/www/registry/new-york/ui/scroll-area.tsx +++ b/apps/www/registry/new-york/ui/scroll-area.tsx @@ -40,9 +40,7 @@ const ScrollBar = React.forwardRef< )} {...props} > - + )) ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName