From 2e19a61cc1e02e97c14fe0477a96331ebee79710 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 18 Jul 2023 19:58:31 +0100 Subject: [PATCH] feat: display PromotionLinks in sidebar --- src/app/(home)/layout.tsx | 25 +++--------- src/components/home/HomeSidebar.tsx | 2 + src/components/home/PromotionLinks.tsx | 55 ++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 src/components/home/PromotionLinks.tsx diff --git a/src/app/(home)/layout.tsx b/src/app/(home)/layout.tsx index b4a8b3d7..040d72cd 100644 --- a/src/app/(home)/layout.tsx +++ b/src/app/(home)/layout.tsx @@ -2,10 +2,11 @@ import { ConnectButton } from "~/components/common/ConnectButton" import { DarkModeSwitch } from "~/components/common/DarkModeSwitch" import { Logo } from "~/components/common/Logo" import HomeTabs from "~/components/home/HomeTabs" +import PromotionLinks from "~/components/home/PromotionLinks" import { BackToTopFAB } from "~/components/site/BackToTopFAB" import { FABContainer } from "~/components/ui/FAB" import { UniLink } from "~/components/ui/UniLink" -import { APP_NAME, DISCORD_LINK, GITHUB_LINK, TWITTER_LINK } from "~/lib/env" +import { APP_NAME } from "~/lib/env" import { getSiteLink } from "~/lib/helpers" export default async function HomeLayout({ @@ -40,25 +41,9 @@ export default async function HomeLayout({
{children}