mirror of
https://github.com/apache/superset.git
synced 2026-04-11 12:26:05 +00:00
* 0.17.4 * Fixing CSRF issues Since turning CSRF across the site with Flask-WTF, a few POST request have been failing. This PR addresses these issues.
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
import React from 'react';
|
|
import AlertContainer from 'react-alert';
|
|
|
|
export default class AlertsWrapper extends React.PureComponent {
|
|
render() {
|
|
return (
|
|
<AlertContainer
|
|
ref={ref => {
|
|
global.notify = ref;
|
|
}}
|
|
offset={14}
|
|
position="top right"
|
|
theme="dark"
|
|
time={5000}
|
|
transition="fade"
|
|
/>);
|
|
}
|
|
}
|