This commit is contained in:
parent
ef673c2a05
commit
a98bbd65b5
@ -23,12 +23,12 @@ import {
|
|||||||
BookMarksTab,
|
BookMarksTab,
|
||||||
FollowersTab,
|
FollowersTab,
|
||||||
FollowsTab,
|
FollowsTab,
|
||||||
|
ProfileNotesTab,
|
||||||
RelaysTab,
|
RelaysTab,
|
||||||
ZapsProfileTab,
|
ZapsProfileTab,
|
||||||
} from "@/Pages/Profile/ProfileTabComponents";
|
} from "@/Pages/Profile/ProfileTabComponents";
|
||||||
import ProfileTabSelectors from "@/Pages/Profile/ProfileTabSelectors";
|
import ProfileTabSelectors from "@/Pages/Profile/ProfileTabSelectors";
|
||||||
import { ProfileTabType } from "@/Pages/Profile/ProfileTabType";
|
import { ProfileTabType } from "@/Pages/Profile/ProfileTabType";
|
||||||
import { NotesTab } from "@/Pages/Root/NotesTab";
|
|
||||||
import { parseId, unwrap } from "@/Utils";
|
import { parseId, unwrap } from "@/Utils";
|
||||||
import { EmailRegex } from "@/Utils/Const";
|
import { EmailRegex } from "@/Utils/Const";
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) {
|
|||||||
|
|
||||||
switch (tab.value) {
|
switch (tab.value) {
|
||||||
case ProfileTabType.NOTES:
|
case ProfileTabType.NOTES:
|
||||||
return <NotesTab id={id} relays={relays} isMe={isMe} />;
|
return <ProfileNotesTab id={id} relays={relays} isMe={isMe} />;
|
||||||
case ProfileTabType.ZAPS: {
|
case ProfileTabType.ZAPS: {
|
||||||
return <ZapsProfileTab id={id} />;
|
return <ZapsProfileTab id={id} />;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ export function BookMarksTab({ id }: { id: HexKey }) {
|
|||||||
return <Bookmarks pubkey={id} bookmarks={bookmarks} />;
|
return <Bookmarks pubkey={id} bookmarks={bookmarks} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NotesTab({ id, relays, isMe }: { id: HexKey; relays?: Array<string>; isMe: boolean }) {
|
export function ProfileNotesTab({ id, relays, isMe }: { id: HexKey; relays?: Array<string>; isMe: boolean }) {
|
||||||
const pinned = usePinList(id);
|
const pinned = usePinList(id);
|
||||||
const options = useMemo(() => ({ showTime: false, showPinned: true, canUnpin: isMe }), [isMe]);
|
const options = useMemo(() => ({ showTime: false, showPinned: true, canUnpin: isMe }), [isMe]);
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user