mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
Create Chart component for all chart fetching and rendering, and apply redux architecture in dashboard view.
22 lines
450 B
JavaScript
22 lines
450 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Alert } from 'react-bootstrap';
|
|
|
|
const propTypes = {
|
|
alertContent: PropTypes.node.isRequired,
|
|
};
|
|
|
|
const DashboardAlert = ({ alertContent }) => (
|
|
<div id="alert-container">
|
|
<div className="container-fluid">
|
|
<Alert bsStyle="warning">
|
|
{alertContent}
|
|
</Alert>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
DashboardAlert.propTypes = propTypes;
|
|
|
|
export default DashboardAlert;
|