Seed Support #56

Closed
ocnios wants to merge 173 commits from master into build
2 changed files with 8 additions and 14 deletions
Showing only changes of commit 5587d2f0f5 - Show all commits

View file

@ -2,7 +2,8 @@ import React from 'react';
import {Line} from 'rc-progress';
import lbry from './lbry.js';
import RegisterPage from './page/register.js';
import lbryio from './lbryio.js';
import EmailPage from './page/email.js';
import SettingsPage from './page/settings.js';
import HelpPage from './page/help.js';
import WatchPage from './page/watch.js';
@ -41,7 +42,7 @@ var App = React.createClass({
message: 'Error message',
data: 'Error data',
},
_fullScreenPages: ['register', 'watch'],
_fullScreenPages: ['watch'],
_upgradeDownloadItem: null,
_isMounted: false,
@ -260,8 +261,6 @@ var App = React.createClass({
{
switch(this.state.viewingPage)
{
case 'register':
return <RegisterPage />;
case 'settings':
return <SettingsPage />;
case 'help':
@ -292,6 +291,8 @@ var App = React.createClass({
return <ShowPage uri={this.state.pageArgs} />;
case 'publish':
return <PublishPage />;
case 'email':
return <EmailPage />;
case 'developer':
return <DeveloperPage />;
case 'discover':

View file

@ -4,16 +4,9 @@ import {getLocal, setLocal} from '../utils.js';
import FormField from '../component/form.js'
import {Link} from '../component/link.js'
const RegisterPage = React.createClass({
_getRewardType: function() {
lbryio.call('reward_type', 'get', this.props.name).then((rewardType) => {
this.setState({
rewardType: rewardType,
});
});
},
const EmailPage = React.createClass({
handleSubmit: function(event) {
if (event !== 'undefined') {
if (event !== undefined) {
event.preventDefault();
}
@ -45,4 +38,4 @@ const RegisterPage = React.createClass({
}
});
export default RegisterPage;
export default EmailPage;