From e8fc603004d16ab5f34fbfa3d7ede9abc983bfb9 Mon Sep 17 00:00:00 2001 From: Application-drop-up Date: Wed, 29 Apr 2026 12:32:12 +0900 Subject: [PATCH 01/16] refactor: inline BaseCard prop type Replace the named `type BaseCardProps = {...}` declaration with an anonymous inline annotation on the component signature, in line with the project rule that .tsx files should not host named type declarations. --- client/src/shared/uis/BaseCard.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/shared/uis/BaseCard.tsx b/client/src/shared/uis/BaseCard.tsx index ce59920..10afc07 100644 --- a/client/src/shared/uis/BaseCard.tsx +++ b/client/src/shared/uis/BaseCard.tsx @@ -1,12 +1,14 @@ import type { ReactNode } from "react"; -type BaseCardProps = { +export function BaseCard({ + children, + as = "div", + onClick, +}: { children: ReactNode; as?: "li" | "div"; onClick?: () => void; -}; - -export function BaseCard({ children, as = "div", onClick }: BaseCardProps) { +}) { // Render element type can be switched (e.g. "div" for general layout, "li" inside