fix #496 #498
@ -8,7 +8,6 @@ import { RootState } from "State/Store";
|
|||||||
import { UserCache } from "Cache/UserCache";
|
import { UserCache } from "Cache/UserCache";
|
||||||
|
|
||||||
import messages from "./messages";
|
import messages from "./messages";
|
||||||
|
|
||||||
interface BookmarksProps {
|
interface BookmarksProps {
|
||||||
pubkey: HexKey;
|
pubkey: HexKey;
|
||||||
bookmarks: readonly TaggedRawEvent[];
|
bookmarks: readonly TaggedRawEvent[];
|
||||||
|
@ -91,7 +91,13 @@ function RelaysTab({ id }: { id: HexKey }) {
|
|||||||
|
|
||||||
function BookMarksTab({ id }: { id: HexKey }) {
|
function BookMarksTab({ id }: { id: HexKey }) {
|
||||||
const bookmarks = useBookmarkFeed(id);
|
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() {
|
export default function ProfilePage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user