Skip to content

Commit 90ffb0a

Browse files
committed
fix type
1 parent 0d39fab commit 90ffb0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Welcome.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { cn } from '../lib/utils.js'
33
import styles from '../styles/Welcome.module.css'
44

55
export interface WelcomeConfig {
6-
welcome: {
6+
welcome?: {
77
className?: string
88
}
99
}
@@ -38,7 +38,7 @@ export default function Welcome({ onClose, config }: WelcomePopupProps) {
3838
}, [onClose])
3939

4040
return (
41-
<div className={cn(styles.welcome, config?.welcome.className)} onClick={handleBackdropClick}>
41+
<div className={cn(styles.welcome, config?.welcome?.className)} onClick={handleBackdropClick}>
4242
<div>
4343
<h2>npx hyperparam</h2>
4444
<p>

0 commit comments

Comments
 (0)