Skip to content

Commit

Permalink
Remove accidental deprecation comments on <DialogPanel> and `<Dialo…
Browse files Browse the repository at this point in the history
…gTitle>` (#3176)

* Remove accidental deprecations

These got left in when they shouldn’t’ve been

* Update changelog
  • Loading branch information
thecrypticace committed May 6, 2024
1 parent fb13190 commit cfbcf5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/@headlessui-react/CHANGELOG.md
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet!
### Fixed

- Remove accidental deprecation comments on `<DialogPanel>` and `<DialogTitle>` ([#3176](https://github.com/tailwindlabs/headlessui/pull/3176))

## [2.0.0] - 2024-05-06

Expand Down
2 changes: 0 additions & 2 deletions packages/@headlessui-react/src/components/dialog/dialog.tsx
Expand Up @@ -536,9 +536,7 @@ export interface _internal_ComponentDialogTitle extends HasDisplayName {
export interface _internal_ComponentDialogDescription extends _internal_ComponentDescription {}

let DialogRoot = forwardRefWithAs(DialogFn) as _internal_ComponentDialog
/** @deprecated use a plain `<div>` instead of `<DialogBackdrop>` */
export let DialogPanel = forwardRefWithAs(PanelFn) as _internal_ComponentDialogPanel
/** @deprecated use a plain `<div>` instead of `<DialogOverlay>` */
export let DialogTitle = forwardRefWithAs(TitleFn) as _internal_ComponentDialogTitle
/** @deprecated use `<Description>` instead of `<DialogDescription>` */
export let DialogDescription = Description as _internal_ComponentDialogDescription
Expand Down

0 comments on commit cfbcf5b

Please sign in to comment.