diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
| commit | c63738e17df4d5bfff2049a6d1c445c609c2189e (patch) | |
| tree | 5e64cdbcd49a3d6f7348cff8ad80a8eafb6dc83c /src/components/Header.tsx | |
| parent | 71abdb2ee3f5bdb1e029c9f4266f4b797fa960f9 (diff) | |
fix: fix lots of type errors
Diffstat (limited to 'src/components/Header.tsx')
| -rw-r--r-- | src/components/Header.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 95d5fef..a3b344d 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -5,13 +5,13 @@ import './Header.css'; export interface HeaderProps { children: ComponentChildren; class?: string; - title: string; + title?: string; } const Header = ({ children, title, ...props }: HeaderProps) => { return ( <header class={(props.class || '') + ' __Header'}> - {title && <Button kind="ghost" class="title" href="/">{title}</Button>} + {!!title && <Button kind="ghost" class="title" href="/">{title}</Button>} <nav> {children} </nav> |
