Skip to content

Commit

Permalink
update proptypes and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Aug 29, 2018
1 parent 7821ed0 commit 7a86b53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/assets/src/visualizations/pivot_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ dt(window, $);

const propTypes = {
data: PropTypes.shape({
// TODO: replace this with raw data in SIP-6
html: PropTypes.string,
columns: PropTypes.arrayOf(PropTypes.oneOfType([
PropTypes.string,
PropTypes.arrayOf(PropTypes.string),
])),
}),
height: PropTypes.number,
columnFormats: PropTypes.object,
columnFormats: PropTypes.objectOf(PropTypes.string),
groupBy: PropTypes.arrayOf(PropTypes.string),
numberFormat: PropTypes.string,
verboseMap: PropTypes.object,
verboseMap: PropTypes.objectOf(PropTypes.string),
};

function PivotTable(element, props) {
Expand Down

0 comments on commit 7a86b53

Please sign in to comment.