From 310190f6c1fdb00c4cdd095fab5cb07108e911fc Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Thu, 2 Oct 2025 10:51:17 +0200 Subject: [PATCH] refactor: simplify header submit button implementation - Remove IconSubmissionForm component usage - Replace with direct Link navigation to /submit - Simplify mobile and desktop submit button logic - Remove unused import and improve code clarity --- web/src/components/header.tsx | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/web/src/components/header.tsx b/web/src/components/header.tsx index dab66a39..50a0321f 100644 --- a/web/src/components/header.tsx +++ b/web/src/components/header.tsx @@ -3,7 +3,6 @@ import { Github, LayoutDashboard, LogOut, PlusCircle, Search, Star } from "lucide-react" import Link from "next/link" import { useEffect, useState } from "react" -import { IconSubmissionForm } from "@/components/icon-submission-form" import { LoginModal } from "@/components/login-modal" import { ThemeSwitcher } from "@/components/theme-switcher" import { REPO_NAME, REPO_PATH } from "@/constants" @@ -149,14 +148,12 @@ export function Header() { {/* Mobile Submit Button */}
{isLoggedIn ? ( - - - Submit icon(s) - - } - /> + ) : ( ) : ( - )}