Skip to content

Commit

Permalink
fix(drawer): use a top-level type-only import instead of inline type …
Browse files Browse the repository at this point in the history
…specifiers
  • Loading branch information
wingkwong committed Dec 24, 2024
1 parent 413bcd7 commit 07780a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-apricots-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/drawer": patch
---

use top-level type-only import instead of inline type specifiers
16 changes: 7 additions & 9 deletions packages/components/drawer/src/index.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 07780a7

Please sign in to comment.