chore: remove lucide-react
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
1658648ea5
commit
322edfce16
|
|
@ -78,7 +78,7 @@
|
|||
"lethargy": "1.0.9",
|
||||
"lodash-es": "4.17.21",
|
||||
"lowdb": "7.0.1",
|
||||
"lucide-react": "0.399.0",
|
||||
|
||||
"markdown-it": "14.1.0",
|
||||
"markdown-it-container": "4.0.0",
|
||||
"ofetch": "1.3.4",
|
||||
|
|
|
|||
|
|
@ -175,9 +175,6 @@ importers:
|
|||
lowdb:
|
||||
specifier: 7.0.1
|
||||
version: 7.0.1
|
||||
lucide-react:
|
||||
specifier: 0.399.0
|
||||
version: 0.399.0(react@18.3.1)
|
||||
markdown-it:
|
||||
specifier: 14.1.0
|
||||
version: 14.1.0
|
||||
|
|
@ -4153,11 +4150,6 @@ packages:
|
|||
resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
lucide-react@0.399.0:
|
||||
resolution: {integrity: sha512-UyTNa3djBISdzL2UktgCrESXexQXaDQWi/WsDkbw6fBFfHlapajR58WoR+gxQ4laxfEyiHmoFrEIM3V+5XOVQg==}
|
||||
peerDependencies:
|
||||
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
|
||||
magic-string@0.30.10:
|
||||
resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==}
|
||||
|
||||
|
|
@ -10221,10 +10213,6 @@ snapshots:
|
|||
|
||||
lru-cache@7.18.3: {}
|
||||
|
||||
lucide-react@0.399.0(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
magic-string@0.30.10:
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.4.15
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { cn } from "@renderer/lib/utils"
|
||||
import { Command as CommandPrimitive } from "cmdk"
|
||||
import { Search } from "lucide-react"
|
||||
import * as React from "react"
|
||||
|
||||
const Command = React.forwardRef<
|
||||
|
|
@ -23,7 +22,7 @@ const CommandInput = React.forwardRef<
|
|||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
|
||||
<Search className="mr-2 size-4 shrink-0 opacity-50" />
|
||||
<i className="i-mingcute-search-2-line mr-2 size-4 shrink-0 opacity-50" />
|
||||
<CommandPrimitive.Input
|
||||
ref={ref}
|
||||
className={cn(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { ChevronRightIcon } from "lucide-react"
|
||||
import * as React from "react"
|
||||
|
||||
const DropdownMenu = DropdownMenuPrimitive.Root
|
||||
|
|
@ -31,7 +30,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
|||
{...props}
|
||||
>
|
||||
{children}
|
||||
<ChevronRightIcon className="ml-auto size-4" />
|
||||
<i className="i-mingcute-down-line ml-auto size-4" />
|
||||
</DropdownMenuPrimitive.SubTrigger>
|
||||
))
|
||||
DropdownMenuSubTrigger.displayName =
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { cva } from "class-variance-authority"
|
||||
import { ChevronDown } from "lucide-react"
|
||||
import * as React from "react"
|
||||
|
||||
const NavigationMenu = React.forwardRef<
|
||||
|
|
@ -54,8 +53,8 @@ const NavigationMenuTrigger = React.forwardRef<
|
|||
>
|
||||
{children}
|
||||
{" "}
|
||||
<ChevronDown
|
||||
className="relative top-px ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180"
|
||||
<i
|
||||
className="i-mingcute-down-line relative top-px ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</NavigationMenuPrimitive.Trigger>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,11 @@ export const LoginButton: FC<LoginProps> = (props) => {
|
|||
modalStack.present({
|
||||
CustomModalComponent: NoopChildren,
|
||||
title: "Login",
|
||||
content: () => <LoginModalContent runtime={window.electron ? "app" : "browser"} />,
|
||||
content: () => (
|
||||
<LoginModalContent
|
||||
runtime={window.electron ? "app" : "browser"}
|
||||
/>
|
||||
),
|
||||
clickOutsideToDismiss: true,
|
||||
})
|
||||
} :
|
||||
|
|
@ -80,6 +84,7 @@ export const ProfileButton: FC<LoginProps> = memo((props) => {
|
|||
</div>
|
||||
</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
<DropdownMenuItem
|
||||
onClick={() => {
|
||||
// Here we need to delay one frame, so it's two raf,
|
||||
|
|
|
|||
Loading…
Reference in New Issue