We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea8514 commit b458f38Copy full SHA for b458f38
lib/Toast.js
@@ -14,12 +14,7 @@ class Toast extends Component {
14
static durations = durations;
15
16
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>);
+ return new RootSiblings(<ToastContainer message={message} {...options} visible={true} />);
23
};
24
25
static hide = toast => {
0 commit comments