diff --git a/src/app/channel/components/createModal.tsx b/src/app/channel/components/createModal.tsx index ca84bce3..7cb2e9c5 100644 --- a/src/app/channel/components/createModal.tsx +++ b/src/app/channel/components/createModal.tsx @@ -2,7 +2,6 @@ import { Dialog, Transition } from "@headlessui/react"; import { createChannel } from "@libs/storage"; import { NDKEvent, NDKPrivateKeySigner } from "@nostr-dev-kit/ndk"; import { AvatarUploader } from "@shared/avatarUploader"; -import { Button } from "@shared/button"; import { CancelIcon, LoaderIcon, PlusIcon } from "@shared/icons"; import { Image } from "@shared/image"; import { RelayContext } from "@shared/relayProvider"; @@ -83,11 +82,11 @@ export function ChannelCreateModal() { onClick={() => openModal()} className="inline-flex h-9 items-center gap-2.5 rounded-md px-2.5" > -
Running Lume, fighting for better future
diff --git a/src/app/space/components/blocks/feed.tsx b/src/app/space/components/blocks/feed.tsx index 418393a9..c0de13cc 100644 --- a/src/app/space/components/blocks/feed.tsx +++ b/src/app/space/components/blocks/feed.tsx @@ -2,6 +2,7 @@ import { getNotesByAuthor } from "@libs/storage"; import { CancelIcon } from "@shared/icons"; import { Note } from "@shared/notes/note"; import { NoteSkeleton } from "@shared/notes/skeleton"; +import { TitleBar } from "@shared/titleBar"; import { useActiveAccount } from "@stores/accounts"; import { useVirtualizer } from "@tanstack/react-virtual"; import { useEffect, useMemo, useRef } from "react"; @@ -56,20 +57,7 @@ export function FeedBlock({ params }: { params: any }) { return (
+
{profile.nip05 || shortenKey(data.pubkey)}
Failed to load...
} {!data ? ( diff --git a/src/app/trending/components/trendingProfiles.tsx b/src/app/trending/components/trendingProfiles.tsx index 4303139b..27030538 100644 --- a/src/app/trending/components/trendingProfiles.tsx +++ b/src/app/trending/components/trendingProfiles.tsx @@ -1,5 +1,6 @@ import { Profile } from "@app/trending/components/profile"; import { NoteSkeleton } from "@shared/notes/skeleton"; +import { TitleBar } from "@shared/titleBar"; import useSWR from "swr"; const fetcher = (url: string) => fetch(url).then((r) => r.json()); @@ -12,12 +13,7 @@ export function TrendingProfiles() { return (Failed to load...
} {!data ? ( diff --git a/src/shared/activeLink.tsx b/src/shared/activeLink.tsx index 8ec3e4ea..ae2e34eb 100644 --- a/src/shared/activeLink.tsx +++ b/src/shared/activeLink.tsx @@ -1,3 +1,4 @@ +import { Link } from "@shared/link"; import { usePageContext } from "@utils/hooks/usePageContext"; import { twMerge } from "tailwind-merge"; @@ -16,11 +17,11 @@ export function ActiveLink({ const pathName = pageContext.urlPathname; return ( - {children} - + ); } diff --git a/src/shared/image.tsx b/src/shared/image.tsx index 77057860..d3d0475d 100644 --- a/src/shared/image.tsx +++ b/src/shared/image.tsx @@ -1,8 +1,14 @@ import { DEFAULT_AVATAR } from "@stores/constants"; +import { ClassAttributes, ImgHTMLAttributes, JSX } from "react"; -export function Image(props) { - const addImageFallback = (event) => { - event.currentTarget.src = DEFAULT_AVATAR; +export function Image( + props: JSX.IntrinsicAttributes & + ClassAttributes