Start on publish page
This commit is contained in:
parent
45803af28a
commit
e0fb8edee5
2 changed files with 24 additions and 7 deletions
17
ui/js/page/publish/index.js
Normal file
17
ui/js/page/publish/index.js
Normal 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)
|
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
import lbry from '../lbry.js';
|
||||
import {FormField, FormRow} from '../component/form.js';
|
||||
import Link from '../component/link';
|
||||
import rewards from '../rewards.js';
|
||||
import lbryio from '../lbryio.js';
|
||||
import Modal from '../component/modal.js';
|
||||
import lbry from 'lbry';
|
||||
import {FormField, FormRow} from 'component/form.js';
|
||||
import Link from 'component/link';
|
||||
import rewards from 'rewards';
|
||||
import lbryio from 'lbryio';
|
||||
import Modal from 'component/modal';
|
||||
|
||||
var PublishPage = React.createClass({
|
||||
_requiredFields: ['meta_title', 'name', 'bid', 'tos_agree'],
|
||||
|
@ -148,7 +148,7 @@ var PublishPage = React.createClass({
|
|||
});
|
||||
},
|
||||
handlePublishStartedConfirmed: function() {
|
||||
window.location = "?published";
|
||||
this.props.navigate('published')
|
||||
},
|
||||
handlePublishError: function(error) {
|
||||
this.setState({
|
Loading…
Reference in a new issue