diff --git a/src/App.jsx b/src/App.jsx index f876c62..bb7b5d1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,16 +1,22 @@ import Toaster from "./components/Helpers/Toaster"; import Routers from "./Routers"; import Default from "./components/Partials/Default"; +import { Navigate, useLocation } from "react-router-dom"; function App() { - return ( - - <> - - - - - ); + const {pathname} = useLocation() + return ( + + <> + {pathname.startsWith('/@') ? + + : + + } + + + + ); } export default App; diff --git a/src/Routers.jsx b/src/Routers.jsx index 6af7cc2..ce12c76 100644 --- a/src/Routers.jsx +++ b/src/Routers.jsx @@ -51,6 +51,7 @@ import FacebookRedirect from "./views/FacebookRedirect"; import AppleRedirectPage from "./views/AppleRedirectPage"; import LndPage from "./views/LndPage"; import FamilySettingsPage from "./views/FamilySettingsPage"; +import AppDownloadPage from "./views/AppDownloadPage"; export default function Routers() { return ( @@ -79,6 +80,7 @@ export default function Routers() { } /> } /> } /> + } /> {/* private route */} }> diff --git a/src/components/AppDownload/AppDownload.jsx b/src/components/AppDownload/AppDownload.jsx new file mode 100644 index 0000000..0a9da6e --- /dev/null +++ b/src/components/AppDownload/AppDownload.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +export default function AppDownload() { + return ( +
+
App Download Content Comes here
+
+ ) +} diff --git a/src/views/AppDownloadPage.jsx b/src/views/AppDownloadPage.jsx new file mode 100644 index 0000000..92e664d --- /dev/null +++ b/src/views/AppDownloadPage.jsx @@ -0,0 +1,13 @@ +import React from "react"; +import AppDownload from "../components/AppDownload/AppDownload"; +import { useLocation } from "react-router-dom"; + +function AppDownloadPage() { + return ( + <> + + + ); +} + +export default AppDownloadPage;