Skip to content

Commit

Permalink
🐛 Make numberOfLines type optional (#174)
Browse files Browse the repository at this point in the history
* Make numberOfLines optional

* Make numberoflines 2 as the comment described

* Revert "Make numberoflines 2 as the comment described"

This reverts commit 1350e7d
  • Loading branch information
AliRezaBeigy authored Dec 22, 2020
1 parent b7f4d9a commit dc507d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export interface SnackBarOptions {
text: string;

/**
* Number of text lines to display on the snackbar.
* Number of text lines to display on the snackbar.
* Default 2 lines are shown.
*/
numberOfLines: number;
numberOfLines?: number;

/**
* Length of time the Snackbar stays on screen.
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type SnackBarOptions = {
* Number of text lines to display on the snackbar.
* Default 2 lines are shown.
*/
numberOfLines: number,
numberOfLines?: number,

/**
* Length of time the Snackbar stays on screen.
Expand Down

0 comments on commit dc507d6

Please sign in to comment.