refactor: recentActions ajax call is redundant (#2722)

This commit is contained in:
YOU 2017-05-07 13:27:40 +09:00 committed by Maxime Beauchemin
parent a6e1e18244
commit 55d3b012e5

View File

@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import $ from 'jquery';
import TableLoader from './TableLoader';
@ -10,18 +9,6 @@ const propTypes = {
};
export default class RecentActivity extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
recentActions: [],
};
}
componentWillMount() {
$.get(`/superset/recent_activity/${this.props.user.userId}/`, (data) => {
this.setState({ recentActions: data });
});
}
render() {
const mutator = function (data) {
return data.map(row => ({