Skip to content

Commit 91272f5

Browse files
committed
uninstall headlessui package
1 parent 0ca0916 commit 91272f5

File tree

3 files changed

+7
-39
lines changed

3 files changed

+7
-39
lines changed

components/MobileMenu.jsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { useState } from "react";
4-
import { Dialog } from "@headlessui/react";
54
import { BsGrid } from "react-icons/bs";
65
import { ConnectMedia, Menu } from "components";
76
import {
@@ -37,32 +36,26 @@ export function MobileMenu() {
3736
</m.button>
3837

3938
<AnimatePresence>
40-
{open && (
41-
<Dialog
42-
as={m.div}
43-
open={isOpen}
44-
onClose={() => null}
39+
{isOpen && (
40+
<m.div
4541
className={`bg-black/90 fixed left-0 right-0 top-[${menuMobileHeight}] min-h-screen z-50`}
4642
initial={initialMobile}
4743
animate={animateMobile}
4844
exit={exitMobile}
4945
>
50-
<Dialog.Title
51-
as="div"
52-
className="p-6 flex items-center justify-between border-b border-b-brand-light z-10"
53-
>
46+
<header className="p-6 flex items-center justify-between border-b border-b-brand-light z-10">
5447
<ConnectMedia />
5548
<button
5649
onClick={onClose}
5750
className="w-10 h-10 inline-flex items-center justify-center"
5851
>
5952
<IoMdClose size="24" />
6053
</button>
61-
</Dialog.Title>
62-
<Dialog.Panel className="px-10">
54+
</header>
55+
<div className="px-10">
6356
<Menu onClick={onClose} />
64-
</Dialog.Panel>
65-
</Dialog>
57+
</div>
58+
</m.div>
6659
)}
6760
</AnimatePresence>
6861
</LazyMotion>

package-lock.json

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc"
1111
},
1212
"dependencies": {
13-
"@headlessui/react": "^1.7.14",
1413
"framer-motion": "^8.5.5",
1514
"next": "^13.4.4",
1615
"react": "^18.2.0",

0 commit comments

Comments
 (0)