Skip to content

Commit

Permalink
fix: button props
Browse files Browse the repository at this point in the history
  • Loading branch information
kilted-andres committed Oct 19, 2023
1 parent b57c366 commit afb7ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import styles from './Button.module.css'

interface Props {
children: React.ReactNode
disabled?: boolean
onClick?: () => void
}

export default function Button({ children, ...props }: Props) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/steps/StartSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function StartSession({
return (
<div className={styles.step}>
<h2>3. Start the Server-Extension-Session</h2>
<Button disabled={extensionSession} onClick={startSession}>
<Button disabled={Boolean(extensionSession)} onClick={startSession}>
connect
</Button>
</div>
Expand Down

0 comments on commit afb7ce8

Please sign in to comment.