From cd574ded61f8062e5aa7c4aa2f9d6cb965c6650b Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Fri, 25 Oct 2024 00:37:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20header=20props=20optional=20=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/docs/src/stories/Header.tsx | 35 ++++++++------------------------ 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/apps/docs/src/stories/Header.tsx b/apps/docs/src/stories/Header.tsx index 791bf19..61b14c9 100644 --- a/apps/docs/src/stories/Header.tsx +++ b/apps/docs/src/stories/Header.tsx @@ -7,39 +7,20 @@ type User = { interface HeaderProps { user?: User; - onLogin: () => void; - onLogout: () => void; - onCreateAccount: () => void; + onLogin?: () => void; + onLogout?: () => void; + onCreateAccount?: () => void; } -export const Header = ({ - user, - onLogin, - onLogout, - onCreateAccount, -}: HeaderProps) => ( +export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => (
- + - - - + + +

Acme