Skip to content

Commit 3125f0c

Browse files
committed
use theme props for Toast color
1 parent bb1660b commit 3125f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/toast/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default class Toast extends PureBaseComponent {
202202
};
203203

204204
renderMessage() {
205-
const {message, centerMessage, color} = this.props;
205+
const {message, centerMessage, color} = this.getThemeProps();
206206
const textColor = color || COLOR;
207207
const textAlign = centerMessage ? 'center' : 'left';
208208

0 commit comments

Comments
 (0)