-
-
-
-
- {isOpen && "xLog"}
-
- {account?.character?.handle &&
- subdomain &&
- account?.character?.handle !== subdomain && (
-
-
- {isOpen && "You are operating"}
-
-
- {isOpen && (
-
-
- {site.data?.metadata?.content?.name}
-
-
- @{site.data?.handle}
-
-
- )}
-
- )}
-
-
+
+
+
+ {account?.character?.handle &&
+ subdomain &&
+ account?.character?.handle !== subdomain && (
+
+
You are operating
+
+
+
+ {site.data?.metadata?.content?.name}
+
+
+ @{site.data?.handle}
+
+
+
+ )}
+
+
+
-
- {links.map((link) => {
- const active =
- link.href &&
- link.isActive({
- pathname: pathname,
- href: link.href,
- })
- return (
-
-
- {isOpen && (
- {t(link.text)}
- )}
-
- )
- })}
-
+
+ {links.map((link) => {
+ const active =
+ link.href &&
+ link.isActive({
+ pathname: pathname,
+ href: link.href,
+ })
+ return (
+
+
+ {t(link.text)}
+
+ )
+ })}
-
-
-
- {isOpen && {t("Need help?")}}
-
-
-
- {isOpen && {t("View Site")}}
-
-
- >
- )}
-
+
+
+
+
+ {t("Need help?")}
+
+
+
+ {t("View Site")}
+
+
+
+
)}
-
>
diff --git a/src/components/dashboard/DashboardSidebar.tsx b/src/components/dashboard/DashboardSidebar.tsx
deleted file mode 100644
index 934735df..00000000
--- a/src/components/dashboard/DashboardSidebar.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import { useEffect, useState } from "react"
-
-import { getStorage, setStorage } from "~/lib/storage"
-
-export const DashboardSidebar = ({
- children,
-}: {
- children: (isOpen: boolean) => React.ReactNode
-}) => {
- const [isOpen, setIsOpen] = useState(true)
-
- useEffect(() => {
- const storage = getStorage("sidebar")
- if (storage) {
- setIsOpen(storage.isOpen)
- }
- }, [])
-
- useEffect(() => {
- setStorage("sidebar", {
- isOpen,
- })
- }, [isOpen])
-
- return (
-
-
- {children(isOpen)}
-
-
setIsOpen(!isOpen)}
- >
- {isOpen ? (
-
- ) : (
-
- )}
-
-
-
- )
-}