diff --git a/src/components/dashboard/DashboardLayout.tsx b/src/components/dashboard/DashboardLayout.tsx index ec1a7e7c..3b3a5b86 100644 --- a/src/components/dashboard/DashboardLayout.tsx +++ b/src/components/dashboard/DashboardLayout.tsx @@ -172,77 +172,78 @@ export function DashboardLayout({ {(isOpen) => ( <> -
-
- +
+
+ +
+ {isOpen && "xLog"} +
+ {userSite.data?.[0]?.username && + subdomain && + userSite.data[0].username !== subdomain && ( +
+
+ {isOpen && "You are operating"} +
+ + {isOpen && ( + + {site.data?.name} + + @{site.data?.username} + + + )} +
+ )} +
+
- {isOpen && "xLog"} -
- {userSite.data?.[0]?.username && - subdomain && - userSite.data[0].username !== subdomain && ( -
-
- {isOpen && "You are operating"} -
- - {isOpen && ( - - {site.data?.name} - - @{site.data?.username} - - - )} -
- )} -
- -
-
- {links.map((link) => { - const active = - link.href && - link.isActive({ - pathname: router.asPath, - href: link.href, - }) - return ( - - - {isOpen && {t(link.text)}} - - ) - })} +
+ {links.map((link) => { + const active = + link.href && + link.isActive({ + pathname: router.asPath, + href: link.href, + }) + return ( + + + {isOpen && {t(link.text)}} + + ) + })} +
- -
+
{children(isOpen)}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 791e950a..320f0992 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -251,7 +251,7 @@ function Home() { return (
-

+

{features.map((feature) => ( ))}

-

+

xLog is the best{" "}

-
+
-
- {t("Explore the xLog way")} +
+ {t("Explore the xLog way")}