diff options
Diffstat (limited to 'frontend/views/page/components')
| -rw-r--r-- | frontend/views/page/components/page.header.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/views/page/components/page.header.js b/frontend/views/page/components/page.header.js index 2898f86..eb1c3b9 100644 --- a/frontend/views/page/components/page.header.js +++ b/frontend/views/page/components/page.header.js @@ -3,6 +3,7 @@ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Link } from 'react-router-dom' +import * as graphActions from '../../graph/graph.actions' import * as pageActions from '../page.actions' function PageHeader(props) { @@ -13,7 +14,8 @@ function PageHeader(props) { </div> <div> <button onClick={() => props.pageActions.toggleAddTileForm()}>+ Add tile</button> - <button onClick={() => props.pageActions.toggleTileList()}>+ Sort tiles</button> + <button onClick={() => props.pageActions.toggleTileList()}>Sort tiles</button> + <button onClick={() => props.graphActions.toggleEditPageForm()}>Edit page</button> </div> </header> ) @@ -27,6 +29,7 @@ const mapStateToProps = (state) => ({ }) const mapDispatchToProps = (dispatch) => ({ + graphActions: bindActionCreators({ ...graphActions }, dispatch), pageActions: bindActionCreators({ ...pageActions }, dispatch), }) |
