diff options
author | Pavel Paroulek <pavel.paroulek@orange.com> | 2019-01-15 18:53:50 +0100 |
---|---|---|
committer | Pavel Paroulek <pavel.paroulek@orange.com> | 2019-01-15 18:53:50 +0100 |
commit | 58457a8de75959ae07dc09df095d72adc5965a7c (patch) | |
tree | 2c90c601d32099a42b33eeab4aa4bcf1e112767f /graphgraph-fe/src/PopupSettings.js | |
parent | 81ff4563106192982aef4abcce91b78d54891247 (diff) |
Initial commit
Java dummy backend and frontend
Change-Id: I8c5528fcf8a746154e0463e065238061ddf6b877
Issue-ID: AAI-532
Signed-off-by: Pavel Paroulek <pavel.paroulek@orange.com>
Diffstat (limited to 'graphgraph-fe/src/PopupSettings.js')
-rw-r--r-- | graphgraph-fe/src/PopupSettings.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/graphgraph-fe/src/PopupSettings.js b/graphgraph-fe/src/PopupSettings.js new file mode 100644 index 0000000..a278bc8 --- /dev/null +++ b/graphgraph-fe/src/PopupSettings.js @@ -0,0 +1,27 @@ +import React from 'react' +import Popup from 'reactjs-popup' +import './PopupSettings.css' +import GraphHops from './GraphHops' + +class PopupMenu extends React.Component { + render () { + return ( + <Popup trigger={<button className='settings-button' disabled={this.props.isDisabled}>Hops</button>} position="bottom right"> + {close => ( + <div> + <GraphHops parentHops={this.props.parentHops} childHops={this.props.childHops} cousinHops={this.props.cousinHops} updateHops={this.props.updateHops} /> + <button + type="button" + className="link-button, close" + onClick={close}> + × + </button> + </div> + )} + </Popup> + + ) + } +} + +export default PopupMenu |