chore: clean up
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
"jotai": "^2.6.2",
|
||||
"linkify-react": "^4.1.3",
|
||||
"linkifyjs": "^4.1.3",
|
||||
"media-chrome": "^2.0.1",
|
||||
"media-chrome": "^2.1.0",
|
||||
"minidenticons": "^4.2.0",
|
||||
"nanoid": "^5.0.4",
|
||||
"nostr-fetch": "^0.15.0",
|
||||
@@ -32,7 +32,7 @@
|
||||
"re-resizable": "^6.9.11",
|
||||
"react": "^18.2.0",
|
||||
"react-currency-input-field": "^3.6.14",
|
||||
"react-router-dom": "^6.21.2",
|
||||
"react-router-dom": "^6.21.3",
|
||||
"react-string-replace": "^1.1.1",
|
||||
"sonner": "^1.3.1",
|
||||
"tippy.js": "^6.3.7",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UnverifiedIcon, VerifiedIcon } from "@lume/icons";
|
||||
import { cn } from "@lume/utils";
|
||||
import { cn, displayNpub } from "@lume/utils";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useArk } from "../../hooks/useArk";
|
||||
import { useUserContext } from "./provider";
|
||||
@@ -39,9 +39,9 @@ export function UserNip05({
|
||||
return (
|
||||
<div className="inline-flex items-center gap-1">
|
||||
<p className={cn("text-sm font-medium", className)}>
|
||||
{user.nip05.startsWith("_@")
|
||||
? user.nip05.replace("_@", "")
|
||||
: user.nip05}
|
||||
{user?.nip05?.startsWith("_@")
|
||||
? user?.nip05?.replace("_@", "")
|
||||
: displayNpub(pubkey, 16)}
|
||||
</p>
|
||||
{!isLoading && verified ? (
|
||||
<VerifiedIcon className="size-4 text-teal-500" />
|
||||
|
||||
Reference in New Issue
Block a user