diff --git a/src/app.tsx b/src/app.tsx
index 0a6f29e63..5890ddda9 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -21,6 +21,14 @@ const RequireSetup = ({ children }: { children: JSX.Element }) => {
return children;
};
+const HomePage = () => (
+
+
+
+
+
+);
+
export const App = () => {
return (
@@ -72,16 +80,7 @@ export const App = () => {
}
/>
-
-
-
-
-
- }
- />
+ } />
);
diff --git a/src/components/post/post-menu.tsx b/src/components/post/post-menu.tsx
index d7dc92695..e9a7db569 100644
--- a/src/components/post/post-menu.tsx
+++ b/src/components/post/post-menu.tsx
@@ -40,6 +40,13 @@ export const PostMenu = ({ event }: { event: NostrEvent }) => {
>
Open in BRB
+
diff --git a/src/views/home/index.tsx b/src/views/home/index.tsx
index c68e7fb97..2722d5b79 100644
--- a/src/views/home/index.tsx
+++ b/src/views/home/index.tsx
@@ -1,8 +1,15 @@
import { Tab, TabList, TabPanel, TabPanels, Tabs } from "@chakra-ui/react";
+import { useMatch, useNavigate } from "react-router-dom";
import { DiscoverTab } from "./discover-tab";
import { FollowingTab } from "./following-tab";
export const HomeView = () => {
+ const navigate = useNavigate();
+ const followingMatch = useMatch("/following");
+ const discoverMatch = useMatch("/discover");
+
+ const tabs = ["/following", "/discover"];
+
return (
{
flexGrow="1"
overflow="hidden"
isLazy
+ index={discoverMatch ? 1 : 0}
+ onChange={(v) => navigate(tabs[v])}
>
Following