From 802b8149dcee0258e487f0312acf13a10fb95567 Mon Sep 17 00:00:00 2001 From: Tom Robinson <tlrobinson@gmail.com> Date: Fri, 7 Oct 2016 15:38:34 -0700 Subject: [PATCH] Visualization propTypes --- .../components/Visualization.jsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend/src/metabase/visualizations/components/Visualization.jsx b/frontend/src/metabase/visualizations/components/Visualization.jsx index 79a6813f8c4..22786dbbe6d 100644 --- a/frontend/src/metabase/visualizations/components/Visualization.jsx +++ b/frontend/src/metabase/visualizations/components/Visualization.jsx @@ -1,3 +1,5 @@ +/* eslint "react/prop-types": "warn" */ + import React, { Component, PropTypes } from "react"; import ExplicitSize from "metabase/components/ExplicitSize.jsx"; @@ -36,9 +38,31 @@ export default class Visualization extends Component { static propTypes = { series: PropTypes.array.isRequired, + className: PropTypes.string, + isDashboard: PropTypes.bool, isEditing: PropTypes.bool, + actionButtons: PropTypes.node, + + // errors + error: PropTypes.string, + errorIcon: PropTypes.string, + + // slow card warnings + isSlow: PropTypes.bool, + expectedDuration: PropTypes.number, + + // injected by ExplicitSize + width: PropTypes.number, + height: PropTypes.number, + + // settings overrides from settings panel + settings: PropTypes.object, + + // used for showing content in place of visualization, e.x. dashcard filter mapping + replacementContent: PropTypes.node, + // used by TableInteractive setSortFn: PropTypes.func, cellIsClickableFn: PropTypes.func, -- GitLab