From efabec8bcb4f9025712475ad42d22bf9ed3209e6 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 20 Jul 2025 21:44:20 +0200 Subject: [PATCH] feat: make button on header consistent for beta --- apps/web/src/components/header.tsx | 40 +++++------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index bfe314d6..720abd3d 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -4,28 +4,9 @@ import Link from "next/link"; import { Button } from "./ui/button"; import { ArrowRight } from "lucide-react"; import { HeaderBase } from "./header-base"; -import { useSession } from "@opencut/auth/client"; -import { getStars } from "@/lib/fetch-github-stars"; -import { useEffect, useState } from "react"; import Image from "next/image"; export function Header() { - const { data: session } = useSession(); - const [star, setStar] = useState(""); - - useEffect(() => { - const fetchStars = async () => { - try { - const data = await getStars(); - setStar(data); - } catch (err) { - console.error("Failed to fetch GitHub stars", err); - } - }; - - fetchStars(); - }, []); - const leftContent = ( OpenCut Logo @@ -40,21 +21,12 @@ export function Header() { Contributors - {process.env.NODE_ENV === "development" ? ( - - - - ) : ( - - - - )} + + + );