Skip to content

Commit d146b78

Browse files
committed
Revert "Use the import * as React from 'react' pattern (#2242)"
This reverts commit 0276231.
1 parent fc908a1 commit d146b78

File tree

22 files changed

+21
-40
lines changed

22 files changed

+21
-40
lines changed

packages/@headlessui-react/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Fix SSR tab hydration when using Strict Mode in development ([#2231](https://github.com/tailwindlabs/headlessui/pull/2231))
1717
- Don't break overflow when multiple dialogs are open at the same time ([#2215](https://github.com/tailwindlabs/headlessui/pull/2215))
1818
- Fix "This `Suspense` boundary received an update before it finished hydrating" error in the `Disclosure` component ([#2238](https://github.com/tailwindlabs/headlessui/pull/2238))
19-
- Use the `import * as React from 'react'` pattern ([#2242](https://github.com/tailwindlabs/headlessui/pull/2242))
2019

2120
## [1.7.8] - 2023-01-27
2221

packages/@headlessui-react/src/components/combobox/combobox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
Fragment,
43
createContext,
54
createRef,

packages/@headlessui-react/src/components/description/description.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
createContext,
43
useContext,
54
useMemo,

packages/@headlessui-react/src/components/dialog/dialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// WAI-ARIA: https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/
2-
import * as React from 'react'
3-
import {
2+
import React, {
43
createContext,
54
createRef,
65
useContext,

packages/@headlessui-react/src/components/disclosure/disclosure.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// WAI-ARIA: https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/
2-
import * as React from 'react'
3-
import {
2+
import React, {
43
Fragment,
54
createContext,
65
useContext,

packages/@headlessui-react/src/components/focus-trap/focus-trap.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
useEffect,
43
useRef,
54

packages/@headlessui-react/src/components/label/label.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
createContext,
43
useContext,
54
useMemo,

packages/@headlessui-react/src/components/listbox/listbox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
Fragment,
43
createContext,
54
createRef,

packages/@headlessui-react/src/components/menu/menu.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// WAI-ARIA: https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/
2-
import * as React from 'react'
3-
import {
2+
import React, {
43
Fragment,
54
createContext,
65
createRef,

packages/@headlessui-react/src/components/popover/popover.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as React from 'react'
2-
import {
1+
import React, {
32
createContext,
43
createRef,
54
useContext,

0 commit comments

Comments
 (0)