From 07780a75a2747405e16af99c1692aef496f54175 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Tue, 24 Dec 2024 17:40:22 +0800 Subject: [PATCH] fix(drawer): use a top-level type-only import instead of inline type specifiers --- .changeset/little-apricots-rhyme.md | 5 +++++ packages/components/drawer/src/index.ts | 16 +++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 .changeset/little-apricots-rhyme.md diff --git a/.changeset/little-apricots-rhyme.md b/.changeset/little-apricots-rhyme.md new file mode 100644 index 0000000000..2a4785e1da --- /dev/null +++ b/.changeset/little-apricots-rhyme.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/drawer": patch +--- + +use top-level type-only import instead of inline type specifiers diff --git a/packages/components/drawer/src/index.ts b/packages/components/drawer/src/index.ts index 51f10ef054..96b0483407 100644 --- a/packages/components/drawer/src/index.ts +++ b/packages/components/drawer/src/index.ts @@ -1,14 +1,12 @@ -import { - ModalHeader, - ModalBody, - ModalFooter, - ModalContent, - type ModalContentProps, - type ModalHeaderProps, - type ModalBodyProps, - type ModalFooterProps, +import type { + ModalContentProps, + ModalHeaderProps, + ModalBodyProps, + ModalFooterProps, } from "@nextui-org/modal"; +import {ModalHeader, ModalBody, ModalFooter, ModalContent} from "@nextui-org/modal"; + import Drawer from "./drawer"; // export types