mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Use react-alert for backend message flashing (#3315)
This commit is contained in:
committed by
GitHub
parent
b9a2fa4015
commit
59268e978a
@@ -70,7 +70,7 @@ class App extends React.PureComponent {
|
||||
}
|
||||
return (
|
||||
<div className="App SqlLab">
|
||||
<AlertsWrapper />
|
||||
<AlertsWrapper initMessages={this.props.initMessages} />
|
||||
<div className="container-fluid">
|
||||
{content}
|
||||
</div>
|
||||
@@ -82,11 +82,13 @@ class App extends React.PureComponent {
|
||||
App.propTypes = {
|
||||
alerts: PropTypes.array,
|
||||
actions: PropTypes.object,
|
||||
initMessages: PropTypes.array,
|
||||
};
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return {
|
||||
alerts: state.alerts,
|
||||
initMessages: state.flash_messages,
|
||||
};
|
||||
}
|
||||
function mapDispatchToProps(dispatch) {
|
||||
|
||||
Reference in New Issue
Block a user