diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-03 15:35:26 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-03 15:35:26 +0100 |
| commit | ee2471bb4ad8e190c1f2c1c47817046a2c4d6b30 (patch) | |
| tree | 8ca5338987e5777a598b0a0d0eebbfc3625f7272 /app/client/modules/biggan/views/biggan.new.js | |
| parent | d6bed4f04c5bba402ae2aa0b15dddfb98c5b3bf1 (diff) | |
adding biggan dataset stuff
Diffstat (limited to 'app/client/modules/biggan/views/biggan.new.js')
| -rw-r--r-- | app/client/modules/biggan/views/biggan.new.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/client/modules/biggan/views/biggan.new.js b/app/client/modules/biggan/views/biggan.new.js new file mode 100644 index 0000000..0d0f74f --- /dev/null +++ b/app/client/modules/biggan/views/biggan.new.js @@ -0,0 +1,33 @@ +import { h, Component } from 'preact' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' +import { Link } from 'react-router-dom' +import util from '../../../util' + +import { Views } from '../../../common' + +import * as bigganActions from '../biggan.actions' +import bigganModule from '../biggan.module' + +function BigGANNew(props){ + return ( + <Views.New + db={props.biggan} + path='/biggan/sequences/' + actions={props.actions} + module={bigganModule} + history={props.history} + /> + ) +} + +const mapStateToProps = state => ({ + biggan: state.module.biggan, +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ + actions: bindActionCreators(bigganActions, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(BigGANNew) + |
