remove versions from dashboard which isn't necessary

This commit is contained in:
Iuri Matias 2018-10-07 16:49:05 -04:00 committed by Pascal Precht
parent fd2e979f06
commit 771953e8b5
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 7 deletions

View File

@ -6,9 +6,8 @@ import {Page} from "tabler-react";
import {commands as commandsAction, listenToProcessLogs, processLogs as processLogsAction} from "../actions";
import DataWrapper from "../components/DataWrapper";
import Processes from '../components/Processes';
import Versions from '../components/Versions';
import Console from '../components/Console';
import {getProcesses, getCommands, getVersions, getProcessLogs} from "../reducers/selectors";
import {getProcesses, getCommands, getProcessLogs} from "../reducers/selectors";
import deepEqual from 'deep-equal';
class HomeContainer extends Component {
@ -38,9 +37,6 @@ class HomeContainer extends Component {
<DataWrapper shouldRender={this.props.processes.length > 0 } {...this.props} render={({processes}) => (
<Processes processes={processes} />
)} />
<DataWrapper shouldRender={this.props.versions.length > 0 } {...this.props} render={({versions}) => (
<Versions versions={versions} />
)} />
<DataWrapper shouldRender={this.props.processes.length > 0 } {...this.props} render={({processes, postCommand, processLogs}) => (
<Console postCommand={postCommand} commands={this.props.commands} processes={processes} processLogs={processLogs} />
@ -52,7 +48,6 @@ class HomeContainer extends Component {
HomeContainer.propTypes = {
processes: PropTypes.arrayOf(PropTypes.object),
versions: PropTypes.arrayOf(PropTypes.object),
postCommand: PropTypes.func,
commands: PropTypes.arrayOf(PropTypes.object),
error: PropTypes.string,
@ -61,7 +56,6 @@ HomeContainer.propTypes = {
function mapStateToProps(state) {
return {
versions: getVersions(state),
processes: getProcesses(state),
commands: getCommands(state),
error: state.errorMessage,