Skip to content

Commit b458f38

Browse files
committed
updated Toast.js file
1 parent fea8514 commit b458f38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/Toast.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ class Toast extends Component {
1414
static durations = durations;
1515

1616
static show = (message, options = {position: positions.BOTTOM, duration: durations.SHORT}) => {
17-
return new RootSiblings(<ToastContainer
18-
{...options}
19-
visible={true}
20-
>
21-
{message}
22-
</ToastContainer>);
17+
return new RootSiblings(<ToastContainer message={message} {...options} visible={true} />);
2318
};
2419

2520
static hide = toast => {

0 commit comments

Comments
 (0)