Skip to content

Commit

Permalink
fix(snackbar): fix timeout option
Browse files Browse the repository at this point in the history
soykje committed Apr 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 48c77dc commit e7a790e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/snackbar/src/Snackbar.tsx
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ export const Snackbar = forwardRef<HTMLDivElement, SnackbarProps>(

Snackbar.displayName = 'Snackbar'

export interface AddSnackbarArgs extends SnackbarItemValue, SnackBarItemOptions {
export interface AddSnackbarArgs extends SnackbarItemValue, Omit<SnackBarItemOptions, 'timeout'> {
/**
* Handler that is called when the snackbar is closed, either by the user
* or after a timeout.
@@ -77,7 +77,7 @@ export interface AddSnackbarArgs extends SnackbarItemValue, SnackBarItemOptions
* A timeout to automatically close the snackbar after, in milliseconds.
* @default 5000
*/
timeout?: number
timeout?: number | null
/**
* The priority of the snackbar relative to other snackbars. Larger numbers indicate higher priority.
*/

0 comments on commit e7a790e

Please sign in to comment.