@snapdragonsnursery/react-components 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AuthButtons.jsx +2 -4
package/package.json
CHANGED
package/src/AuthButtons.jsx
CHANGED
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
clearUserContext,
|
|
25
25
|
} from "./telemetry";
|
|
26
26
|
import ThemeToggle from "./ThemeToggle";
|
|
27
|
-
import { Menu } from "@headlessui/react";
|
|
28
27
|
import { createPopper } from "@popperjs/core";
|
|
29
28
|
|
|
30
29
|
const isMobile = window.innerWidth < 640;
|
|
@@ -308,8 +307,7 @@ function AuthButtons({ theme, setTheme, authState, setAuthState }) {
|
|
|
308
307
|
return (
|
|
309
308
|
<div className="relative inline-block text-left">
|
|
310
309
|
<div>
|
|
311
|
-
<
|
|
312
|
-
as="div"
|
|
310
|
+
<button
|
|
313
311
|
ref={buttonRef}
|
|
314
312
|
className="focus:outline-none"
|
|
315
313
|
onClick={() => setMenuOpen((open) => !open)}
|
|
@@ -332,7 +330,7 @@ function AuthButtons({ theme, setTheme, authState, setAuthState }) {
|
|
|
332
330
|
</span>
|
|
333
331
|
</div>
|
|
334
332
|
)}
|
|
335
|
-
</
|
|
333
|
+
</button>
|
|
336
334
|
</div>
|
|
337
335
|
{menuOpen && (
|
|
338
336
|
<div
|