mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
Dashboard refactory (#3581)
Create Chart component for all chart fetching and rendering, and apply redux architecture in dashboard view.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user