This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
41 additions
and
33,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { useLocation, useRouteLoaderData } from "@remix-run/react"; | ||
import { useLocation } from "@remix-run/react"; | ||
import { Avatar, Flex, Link, SideNavigation, Text } from "gestalt"; | ||
import type { RootData } from "../../root"; | ||
import Footer from "../Footer/Footer"; | ||
|
||
export default function UnauthSideNav({ | ||
closeMobileNav, | ||
|
@@ -11,7 +9,6 @@ export default function UnauthSideNav({ | |
showHeader?: boolean; | ||
}) { | ||
const location = useLocation(); | ||
const rootLoaderData = useRouteLoaderData("root") as RootData; | ||
return ( | ||
<SideNavigation | ||
title="Menu" | ||
|
@@ -34,84 +31,13 @@ export default function UnauthSideNav({ | |
</Flex> | ||
) : undefined | ||
} | ||
footer={<Footer />} | ||
> | ||
<SideNavigation.TopItem | ||
href="/" | ||
active={location.pathname === "/" ? "page" : undefined} | ||
label="What is Bespoke?" | ||
onClick={closeMobileNav} | ||
/> | ||
|
||
{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : ( | ||
<SideNavigation.TopItem | ||
href="/pricing" | ||
active={location.pathname === "/pricing" ? "page" : undefined} | ||
label="Pricing" | ||
onClick={closeMobileNav} | ||
/> | ||
)} | ||
|
||
<SideNavigation.Section label="App"> | ||
<SideNavigation.TopItem | ||
active={location.pathname === "/signup" ? "page" : undefined} | ||
href="/signup" | ||
label="Sign Up" | ||
onClick={closeMobileNav} | ||
/> | ||
<SideNavigation.TopItem | ||
active={location.pathname === "/login" ? "page" : undefined} | ||
href="/login" | ||
label="Login" | ||
onClick={closeMobileNav} | ||
/> | ||
</SideNavigation.Section> | ||
|
||
<SideNavigation.Section label="External Links"> | ||
{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : ( | ||
<SideNavigation.TopItem | ||
href="https://github.com/bespoke-surf/bespoke" | ||
label="Self Host Guide | Github" | ||
onClick={closeMobileNav} | ||
/> | ||
)} | ||
<SideNavigation.TopItem | ||
href="https://bespoke-api.readme.io/" | ||
label="API Reference" | ||
onClick={closeMobileNav} | ||
/> | ||
<SideNavigation.TopItem | ||
href="https://bespoke.bespoke.surf" | ||
label="Blog" | ||
onClick={closeMobileNav} | ||
/> | ||
|
||
<SideNavigation.TopItem | ||
href="https://feedback.bespoke.surf/changelog" | ||
label="See What's New" | ||
onClick={closeMobileNav} | ||
/> | ||
|
||
{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : ( | ||
<SideNavigation.Group label="Support"> | ||
<SideNavigation.NestedItem | ||
href="https://discord.gg/h8gekTtq" | ||
label="Devs on Discord" | ||
onClick={closeMobileNav} | ||
/> | ||
<SideNavigation.NestedItem | ||
href="https://twitter.com/bespoke_surf" | ||
label="Twitter" | ||
onClick={closeMobileNav} | ||
/> | ||
<SideNavigation.NestedItem | ||
href="mailto:[email protected]" | ||
label="Email Us" | ||
onClick={closeMobileNav} | ||
/> | ||
</SideNavigation.Group> | ||
)} | ||
</SideNavigation.Section> | ||
</SideNavigation> | ||
); | ||
} |
Oops, something went wrong.