From 333a2833d3f9eb2a9a5710c9ac558600f358e2cc Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Tue, 13 Aug 2024 12:54:58 -0400 Subject: [PATCH] remove shadcn feature flag --- app/(main)/actions.ts | 1 - app/(main)/page.tsx | 30 ++++++++++++------------------ 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/app/(main)/actions.ts b/app/(main)/actions.ts index 620fc3b18..9b15a7e9f 100644 --- a/app/(main)/actions.ts +++ b/app/(main)/actions.ts @@ -1,7 +1,6 @@ "use server"; import client from "@/lib/prisma"; -import { redirect } from "next/navigation"; export async function shareApp({ generatedCode, diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index 12f362c52..cc304c3f1 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -22,10 +22,6 @@ import { toast, Toaster } from "sonner"; import LoadingDots from "../../components/loading-dots"; import { shareApp } from "./actions"; -const FEATURES = { - shadcn: false, -}; - export default function Home() { let [status, setStatus] = useState< "initial" | "creating" | "created" | "updating" | "updated" @@ -295,20 +291,18 @@ export default function Home() { - {FEATURES.shadcn && ( -
- - - - -
- )} +
+ + + + +