mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 09:46:37 +00:00
remove versions from dashboard which isn't necessary
This commit is contained in:
parent
fd2e979f06
commit
771953e8b5
@ -6,9 +6,8 @@ import {Page} from "tabler-react";
|
|||||||
import {commands as commandsAction, listenToProcessLogs, processLogs as processLogsAction} from "../actions";
|
import {commands as commandsAction, listenToProcessLogs, processLogs as processLogsAction} from "../actions";
|
||||||
import DataWrapper from "../components/DataWrapper";
|
import DataWrapper from "../components/DataWrapper";
|
||||||
import Processes from '../components/Processes';
|
import Processes from '../components/Processes';
|
||||||
import Versions from '../components/Versions';
|
|
||||||
import Console from '../components/Console';
|
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';
|
import deepEqual from 'deep-equal';
|
||||||
|
|
||||||
class HomeContainer extends Component {
|
class HomeContainer extends Component {
|
||||||
@ -38,9 +37,6 @@ class HomeContainer extends Component {
|
|||||||
<DataWrapper shouldRender={this.props.processes.length > 0 } {...this.props} render={({processes}) => (
|
<DataWrapper shouldRender={this.props.processes.length > 0 } {...this.props} render={({processes}) => (
|
||||||
<Processes processes={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}) => (
|
<DataWrapper shouldRender={this.props.processes.length > 0 } {...this.props} render={({processes, postCommand, processLogs}) => (
|
||||||
<Console postCommand={postCommand} commands={this.props.commands} processes={processes} processLogs={processLogs} />
|
<Console postCommand={postCommand} commands={this.props.commands} processes={processes} processLogs={processLogs} />
|
||||||
@ -52,7 +48,6 @@ class HomeContainer extends Component {
|
|||||||
|
|
||||||
HomeContainer.propTypes = {
|
HomeContainer.propTypes = {
|
||||||
processes: PropTypes.arrayOf(PropTypes.object),
|
processes: PropTypes.arrayOf(PropTypes.object),
|
||||||
versions: PropTypes.arrayOf(PropTypes.object),
|
|
||||||
postCommand: PropTypes.func,
|
postCommand: PropTypes.func,
|
||||||
commands: PropTypes.arrayOf(PropTypes.object),
|
commands: PropTypes.arrayOf(PropTypes.object),
|
||||||
error: PropTypes.string,
|
error: PropTypes.string,
|
||||||
@ -61,7 +56,6 @@ HomeContainer.propTypes = {
|
|||||||
|
|
||||||
function mapStateToProps(state) {
|
function mapStateToProps(state) {
|
||||||
return {
|
return {
|
||||||
versions: getVersions(state),
|
|
||||||
processes: getProcesses(state),
|
processes: getProcesses(state),
|
||||||
commands: getCommands(state),
|
commands: getCommands(state),
|
||||||
error: state.errorMessage,
|
error: state.errorMessage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user