File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ppeerit-react-toast" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " toast for reactjs" ,
5
5
"main" : " bin/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const duration = 500
5
5
// default options
6
6
export let options = {
7
7
timeout : 3000 ,
8
- position : 'top ' ,
8
+ position : 'default ' ,
9
9
backgroundColor : null ,
10
10
textColor : null
11
11
}
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ function umountToast() {
159
159
}
160
160
161
161
// show animated toast
162
- function show ( text , type , config ) {
162
+ function show ( text , type = 'info' , config = { } ) {
163
163
let newConfig = assign ( { } , options , config )
164
164
if ( ! document . getElementById ( wrapper ) . hasChildNodes ( ) ) {
165
165
// mount toast
You can’t perform that action at this time.
0 commit comments