filtering moved to ProfilePage

This commit is contained in:
vivganes
2023-04-08 15:05:34 +05:30
parent b68693d7c2
commit f61630619a
2 changed files with 16 additions and 15 deletions

View File

@ -91,7 +91,13 @@ function RelaysTab({ id }: { id: HexKey }) {
function BookMarksTab({ id }: { id: HexKey }) {
const bookmarks = useBookmarkFeed(id);
return <Bookmarks pubkey={id} bookmarks={bookmarks} related={bookmarks} />;
return (
<Bookmarks
pubkey={id}
bookmarks={bookmarks.filter(e => e.kind === EventKind.TextNote)}
related={bookmarks.filter(e => e.kind !== EventKind.TextNote)}
/>
);
}
export default function ProfilePage() {