diff --git a/client/src/components/DescendentsTree.js b/client/src/components/DescendentsTree.js index dccb7b6e7..0d07207dd 100644 --- a/client/src/components/DescendentsTree.js +++ b/client/src/components/DescendentsTree.js @@ -29,8 +29,8 @@ import PortraitImage from '../img/portrait.jpg' const styles = theme => ({ card: { - maxWidth: 150, - minWidth: 150, + maxWidth: 300, + minWidth: 300, paddingTop: '30' }, media: { @@ -162,11 +162,14 @@ class DescendentsTree extends Component { if (descendent.descendents.length > 0) { return( - + { + this.setState(state => ({ [descendent.alias]: !state[descendent.alias] })); + } + }> - {this.state.open ? : } + {this.state[descendent.alias] ? : } - + {this.displayNestedListItems(descendent, level + 1)} diff --git a/client/src/components/YourDescendents.js b/client/src/components/YourDescendents.js index 550f1c846..d069f9311 100644 --- a/client/src/components/YourDescendents.js +++ b/client/src/components/YourDescendents.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import {graphql, compose} from 'react-apollo' +import {compose} from 'react-apollo' // Materia UI