Skip to content

Commit 930fe4b

Browse files
author
rodriguez-facundo
committed
#139 Remove unused components
1 parent bee83b9 commit 930fe4b

4 files changed

Lines changed: 3 additions & 181 deletions

File tree

webapp/components/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@ export const NetPyNESynapses = connect(
155155
updateCardsDispatch
156156
)(PythonControlledCapability.createPythonControlledComponent(_NetPyNESynapses));
157157

158-
import _NetPyNETabs from "./settings/NetPyNETabs";
159-
export const NetPyNETabs = connect(
160-
state => state.general,
161-
dispatch => ({
162-
editModel: () => dispatch(editModel),
163-
createNetwork: () => dispatch(createNetwork),
164-
createAndSimulateNetwork: () => dispatch(createAndSimulateNetwork),
165-
showNetwork: () => dispatch(showNetwork)
166-
})
167-
)(_NetPyNETabs);
168-
169158
import SelectField from "./general/Select";
170159
export const NetPyNESelectField = connect((state, ownProps) => ({
171160
...ownProps,

webapp/components/settings/NetPyNETabs.js

Lines changed: 0 additions & 168 deletions
This file was deleted.

webapp/components/topbar/SwitchPageButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SwitchPageButton extends Component {
5858
onClick={this.handleClick.bind(this)}
5959
endIcon={<Icon className={this.props.editModelPage ? "fa fa-rocket" : "fa fa-pencil"}/>}
6060
>
61-
{this.props.editModelPage ? this.props.pageTransitionMode : "Back to edition"}
61+
{this.props.editModelPage ? this.props.pageTransitionMode : TOPBAR_CONSTANTS.BACK_TO_EDITION}
6262
</Button>
6363

6464
</div>

webapp/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const TOPBAR_CONSTANTS = {
4646
DOWNLOAD_FILES: 'DOWNLOAD_FILES',
4747
CREATE_NETWORK: 'Create Network',
4848
CREATE_AND_SIMULATE_NETWORK:'Create and Simulate Network',
49-
EXPLORE_EXISTING_NETWORK:'Explore Existing Network'
49+
EXPLORE_EXISTING_NETWORK:'Explore Existing Network',
50+
BACK_TO_EDITION: 'Back to edition'
5051

5152
}

0 commit comments

Comments
 (0)