Skip to content

Commit 07780a7

Browse files
committed
fix(drawer): use a top-level type-only import instead of inline type specifiers
1 parent 413bcd7 commit 07780a7

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.changeset/little-apricots-rhyme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/drawer": patch
3+
---
4+
5+
use top-level type-only import instead of inline type specifiers

packages/components/drawer/src/index.ts

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import {
2-
ModalHeader,
3-
ModalBody,
4-
ModalFooter,
5-
ModalContent,
6-
type ModalContentProps,
7-
type ModalHeaderProps,
8-
type ModalBodyProps,
9-
type ModalFooterProps,
1+
import type {
2+
ModalContentProps,
3+
ModalHeaderProps,
4+
ModalBodyProps,
5+
ModalFooterProps,
106
} from "@nextui-org/modal";
117

8+
import {ModalHeader, ModalBody, ModalFooter, ModalContent} from "@nextui-org/modal";
9+
1210
import Drawer from "./drawer";
1311

1412
// export types

0 commit comments

Comments
 (0)