From 27f5e8a7eb62f0d47a8f6b815adaaf2abd3215f6 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Tue, 2 Apr 2019 19:44:02 +0200 Subject: [PATCH] Rename Value Panel --- app/src/components/Sidebar/Sidebar.tsx | 2 +- .../Sidebar/ValueRenderer/{Panel.tsx => ValuePanel.tsx} | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename app/src/components/Sidebar/ValueRenderer/{Panel.tsx => ValuePanel.tsx} (97%) diff --git a/app/src/components/Sidebar/Sidebar.tsx b/app/src/components/Sidebar/Sidebar.tsx index 3ea132a..9e14500 100644 --- a/app/src/components/Sidebar/Sidebar.tsx +++ b/app/src/components/Sidebar/Sidebar.tsx @@ -6,7 +6,7 @@ import Delete from '@material-ui/icons/Delete' import ExpandMore from '@material-ui/icons/ExpandMore' import NodeStats from './NodeStats' import Topic from './Topic' -import ValueRendererPanel from './ValueRenderer/Panel' +import ValuePanel from './ValueRenderer/Panel' import { AppState } from '../../reducers' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' diff --git a/app/src/components/Sidebar/ValueRenderer/Panel.tsx b/app/src/components/Sidebar/ValueRenderer/ValuePanel.tsx similarity index 97% rename from app/src/components/Sidebar/ValueRenderer/Panel.tsx rename to app/src/components/Sidebar/ValueRenderer/ValuePanel.tsx index 9f0e403..726f62c 100644 --- a/app/src/components/Sidebar/ValueRenderer/Panel.tsx +++ b/app/src/components/Sidebar/ValueRenderer/ValuePanel.tsx @@ -40,7 +40,7 @@ interface State { compareMessage?: q.Message } -class Panel extends React.Component { +class ValuePanel extends React.Component { constructor(props: Props) { super(props) this.state = { } @@ -80,7 +80,8 @@ class Panel extends React.Component { + compareWith={this.state.compareMessage} + /> ) } @@ -175,4 +176,4 @@ const styles: StyleRulesCallback = (theme: Theme) => { } } -export default withStyles(styles)(connect(mapStateToProps, mapDispatchToProps)(Panel)) +export default withStyles(styles)(connect(mapStateToProps, mapDispatchToProps)(ValuePanel))