From 1b39aeca88d65b75afb56f1d6dd134806449b9c1 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Thu, 10 Aug 2017 12:50:12 -0700 Subject: [PATCH] Remove unused props and simplify prop names --- .../components/CellEditorOverlay.js | 10 ++++---- ui/src/dashboards/components/Visualization.js | 23 ++++++++----------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/ui/src/dashboards/components/CellEditorOverlay.js b/ui/src/dashboards/components/CellEditorOverlay.js index 4c2241360..d19bbaaef 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.js +++ b/ui/src/dashboards/components/CellEditorOverlay.js @@ -222,16 +222,14 @@ class CellEditorOverlay extends Component { initialBottomHeight={INITIAL_HEIGHTS.queryMaker} >
-
+
- {cellName} + {name}
@@ -39,13 +36,13 @@ const DashVisualization = ( const {arrayOf, func, number, shape, string} = PropTypes DashVisualization.defaultProps = { - cellName: '', - cellType: '', + name: '', + type: '', } DashVisualization.propTypes = { - cellName: string, - cellType: string, + name: string, + type: string, autoRefresh: number.isRequired, templates: arrayOf(shape()), timeRange: shape({ @@ -53,8 +50,6 @@ DashVisualization.propTypes = { lower: string, }).isRequired, queryConfigs: arrayOf(shape({})).isRequired, - height: string, - heightPixels: number, editQueryStatus: func.isRequired, axes: shape({ y: shape({