feat: remove NotificationIcon from admin navbar and add @heroicons/react dependency

This commit is contained in:
Ardeman 2025-03-04 05:49:00 +08:00
parent f4e83f7eac
commit 7c244e256f
3 changed files with 13 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import { Button, Popover, PopoverButton, PopoverPanel } from '@headlessui/react'
import { Link, useFetcher, useRouteLoaderData } from 'react-router'
import { ChevronIcon } from '~/components/icons/chevron'
import { NotificationIcon } from '~/components/icons/notification'
import { APP } from '~/configs/meta'
import type { loader } from '~/routes/_admin.lg-admin'
@ -55,10 +54,6 @@ export const Navbar = () => {
</fetcher.Form>
</PopoverPanel>
</Popover>
<NotificationIcon
className="text-[#B0C3CC]"
showBadge={true}
/>
</div>
</div>
)

View File

@ -15,6 +15,7 @@
},
"dependencies": {
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.2.0",
"@hookform/resolvers": "^4.1.1",
"@react-router/fs-routes": "^7.1.3",
"@react-router/node": "^7.1.3",

12
pnpm-lock.yaml generated
View File

@ -11,6 +11,9 @@ importers:
'@headlessui/react':
specifier: ^2.2.0
version: 2.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@heroicons/react':
specifier: ^2.2.0
version: 2.2.0(react@19.0.0)
'@hookform/resolvers':
specifier: ^4.1.1
version: 4.1.1(react-hook-form@7.54.2(react@19.0.0))
@ -618,6 +621,11 @@ packages:
react: ^18 || ^19 || ^19.0.0-rc
react-dom: ^18 || ^19 || ^19.0.0-rc
'@heroicons/react@2.2.0':
resolution: {integrity: sha512-LMcepvRaS9LYHJGsF0zzmgKCUim/X3N/DQKc4jepAXJ7l8QxJ1PmxJzqplF2Z3FE4PqBAIGyJAQ/w4B5dsqbtQ==}
peerDependencies:
react: '>= 16 || ^19.0.0-rc'
'@hookform/resolvers@4.1.1':
resolution: {integrity: sha512-S9YN1RgNWG+klUz5uQaV6rjE4pr6Py2tamj7ekshzLcMyg+/Pal1KZAYgGszV0+doiy41dUiQgXL3uRS9stndQ==}
peerDependencies:
@ -5042,6 +5050,10 @@ snapshots:
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
'@heroicons/react@2.2.0(react@19.0.0)':
dependencies:
react: 19.0.0
'@hookform/resolvers@4.1.1(react-hook-form@7.54.2(react@19.0.0))':
dependencies:
caniuse-lite: 1.0.30001700