Redux #115

Merged
6ea86b96 merged 57 commits from redux into redux 2017-05-05 22:55:12 +02:00
2 changed files with 22 additions and 5 deletions
Showing only changes of commit d87fc4b09a - Show all commits

View file

@ -0,0 +1,17 @@
import React from 'react'
import {
connect,
} from 'react-redux'
import {
doNavigate,
} from 'actions/app'
import PublishPage from './view'
const select = (state) => ({
})
const perform = (dispatch) => ({
navigate: (path) => dispatch(doNavigate(path)),
})
export default connect(select, perform)(PublishPage)

View file

@ -1,9 +1,9 @@
import React from 'react';
import lbry from '../lbry.js';
import FormField from '../component/form.js';
import lbry from 'lbry';
import {FormField, FormRow} from 'component/form.js';
import Link from 'component/link';
import rewards from '../rewards.js';
import Modal from '../component/modal.js';
import rewards from 'rewards';
import Modal from 'component/modal';
var PublishPage = React.createClass({
_requiredFields: ['meta_title', 'name', 'bid', 'tos_agree'],
@ -147,7 +147,7 @@ var PublishPage = React.createClass({
});
},
handlePublishStartedConfirmed: function() {
window.location.href = "?published";
this.props.navigate('published')
},
handlePublishError: function(error) {
this.setState({