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