@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user