-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// the same component as mapEditor page | ||
export { default } from '../../../src/pages/Editor/pages/MapEditor'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React, { Component, PropTypes } from 'react' | ||
import { connect } from 'react-redux' | ||
|
||
import { Link } from '@routes' | ||
// import style from './EditMapView.css' | ||
// import CommonEditor from '../CommonEditor' | ||
// import LinearScaleEditor from '../LinearScaleEditor' | ||
// import EquidistantScaleEditor from '../EquidistantScaleEditor' | ||
|
||
const style = {} | ||
|
||
class EditMap extends Component { | ||
// renderEditor() { | ||
// const dataClassification = this.props.mapUi.get('dataClassification') | ||
// const linearEditor = <LinearScaleEditor /> | ||
// const equidistantEditor = <EquidistantScaleEditor /> | ||
// const editors = { | ||
// linear: linearEditor, | ||
// equidistant: equidistantEditor, | ||
// } | ||
|
||
// return editors[dataClassification] | ||
// } | ||
|
||
render() { | ||
return ( | ||
<div className={style.container}> | ||
<div className={style.wrapper}> | ||
<Link prefetch route={`/editor/${this.props.mapType}/upload`}> | ||
<a className={style.link}> | ||
Upload new data | ||
</a> | ||
</Link> | ||
<Link prefetch route={`/editor/${this.props.mapType}/edit-data`}> | ||
<a className={style.link}> | ||
Edit data | ||
</a> | ||
</Link> | ||
|
||
<h1>EditMap</h1> | ||
|
||
{/* <CommonEditor> | ||
{this.renderEditor()} | ||
</CommonEditor> */} | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
EditMap.propTypes = { | ||
mapUi: PropTypes.object.isRequired, | ||
mapType: PropTypes.string.isRequired, | ||
} | ||
|
||
function mapStateToProps(state) { | ||
return { | ||
mapUi: state.mapUi, | ||
mapType: state.mapType, | ||
} | ||
} | ||
|
||
export default connect(mapStateToProps)(EditMap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './EditMap'; |