Merge pull request #230 from laanwj/2024-09-reactions

Rename user "likes" tab to more neutral "reactions"
This commit is contained in:
hzrd149 2024-09-11 19:30:55 +03:00 committed by GitHub
commit b4338d5391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ const router = createHashRouter([
{ path: "tracks", element: <UserTracksTab /> },
{ path: "videos", element: <UserVideosTab /> },
{ path: "zaps", element: <UserZapsTab /> },
{ path: "likes", element: <UserReactionsTab /> },
{ path: "reactions", element: <UserReactionsTab /> },
{ path: "lists", element: <UserListsTab /> },
{ path: "followers", element: <UserFollowersTab /> },
{ path: "following", element: <UserFollowingTab /> },

View File

@ -48,7 +48,7 @@ const tabs = [
{ label: "Zaps", path: "zaps" },
{ label: "Lists", path: "lists" },
{ label: "Following", path: "following" },
{ label: "Likes", path: "likes" },
{ label: "Reactions", path: "reactions" },
{ label: "Relays", path: "relays" },
{ label: "Goals", path: "goals" },
{ label: "Tracks", path: "tracks" },

View File

@ -48,7 +48,7 @@ export default function UserReactionsTab() {
const contextRelays = useAdditionalRelayContext();
const readRelays = useReadRelays(contextRelays);
const timeline = useTimelineLoader(`${pubkey}-likes`, readRelays, { authors: [pubkey], kinds: [7] });
const timeline = useTimelineLoader(`${pubkey}-reactions`, readRelays, { authors: [pubkey], kinds: [7] });
const reactions = useSubject(timeline.timeline);
const callback = useTimelineCurserIntersectionCallback(timeline);