mirror of
https://github.com/hoornet/vega.git
synced 2026-05-10 14:19:12 -07:00
Persist feed tab across navigation — back button returns to correct tab
Feed tab (Global/Following) moved from local state to UI store so it survives thread/profile navigation. Fixed hardcoded "feed" in openThread calls to pass currentView instead.
This commit is contained in:
@@ -191,7 +191,7 @@ export function NoteCard({ event, focused }: NoteCardProps) {
|
||||
onClick={async (e) => {
|
||||
e.stopPropagation();
|
||||
const parent = await fetchNoteById(parentEventId);
|
||||
if (parent) openThread(parent, "feed");
|
||||
if (parent) openThread(parent, currentView as "feed" | "profile");
|
||||
}}
|
||||
className="hover:text-accent transition-colors"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user