diff --git a/ui/js/component/auth.js b/ui/js/component/auth.js index df18b0817..c6ad8ae19 100644 --- a/ui/js/component/auth.js +++ b/ui/js/component/auth.js @@ -52,12 +52,12 @@ class SubmitEmailStage extends React.Component { render() { return (
-
+ { this.handleSubmit(event) }}> { this._emailRow = ref }} type="text" label="Email" placeholder="scrwvwls@lbry.io" name="email" value={this.state.email} - onChange={this.handleEmailChanged} /> + onChange={(event) => { this.handleEmailChanged(event) }} />
- + { this.handleSubmit(event) }} />
@@ -108,12 +108,12 @@ class ConfirmEmailStage extends React.Component { render() { return (
-
+ { this.handleSubmit(event) }}> { this._codeRow = ref }} type="text" - name="code" placeholder="a94bXXXXXXXXXXXXXX" value={this.state.code} onChange={this.handleCodeChanged} + name="code" placeholder="a94bXXXXXXXXXXXXXX" value={this.state.code} onChange={(event) => { this.handleCodeChanged(event) }} helper="A verification code is required to access this version."/>
- + { this.handleSubmit(event)}} />
No code? { this.props.setStage("nocode")}} label="Click here" />. @@ -152,7 +152,7 @@ class WelcomeStage extends React.Component {

Below, LBRY is controlled by users -- you -- via blockchain and decentralization.

Thank you for making content freedom possible! Here's a nickel, kid.

- this.props.setStage(null)} onConfirmed={() => { this.props.setStage(null) }} /> + { this.onRewardClaim(event) }} onRewardFailure={() => this.props.setStage(null)} onConfirmed={() => { this.props.setStage(null) }} />
: @@ -319,9 +319,9 @@ export class AuthOverlay extends React.Component { this.state.stage != "welcome" ?

LBRY Early Access

- + { this.setStage(stage, stageProps) }} />
: - + { this.setStage(stage, stageProps) }} {...this.state.stageProps} /> ); } } \ No newline at end of file diff --git a/ui/js/component/common.js b/ui/js/component/common.js index d2e05d6f6..fc37c280a 100644 --- a/ui/js/component/common.js +++ b/ui/js/component/common.js @@ -152,6 +152,6 @@ export class Thumbnail extends React.Component { const className = this.props.className ? this.props.className : '', otherProps = Object.assign({}, this.props) delete otherProps.className; - return + return { this.handleError() }} {...otherProps} className={className} src={this.state.imageUri} /> } } diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index ec2b93587..64e0ac219 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -121,7 +121,7 @@ class FileActions extends React.Component { openModal('confirmRemove')} label="Remove..." /> : '' } + contentLabel="Confirm Purchase" onConfirmed={this.onAffirmPurchase.bind(this)} onAborted={this.closeModal.bind(this)}> This will purchase {title} for credits. +// onClick={(event) => { this.handleClick() }} {... 'style' in this.props ? {style: this.props.style} : {}}> // {content} // // ); diff --git a/ui/js/component/menu.js b/ui/js/component/menu.js index 7176895a4..25d3e95ac 100644 --- a/ui/js/component/menu.js +++ b/ui/js/component/menu.js @@ -81,9 +81,9 @@ export class DropDownMenu extends React.Component { } return (
- this._menuButton = span} button="text" icon="icon-ellipsis-v" onClick={this.handleMenuIconClick} /> + this._menuButton = span} button="text" icon="icon-ellipsis-v" onClick={(event) => { this.handleMenuIconClick(event) }} /> {this.state.menuOpen - ?
this._menuDiv = div} className="menu" onClick={this.handleMenuClick}> + ?
this._menuDiv = div} className="menu" onClick={(event) => { this.handleMenuClick(event) }}> {this.props.children}
: null} diff --git a/ui/js/component/modal.js b/ui/js/component/modal.js index 6d7bbc2d8..bd3c1eb3c 100644 --- a/ui/js/component/modal.js +++ b/ui/js/component/modal.js @@ -81,7 +81,7 @@ export class ExpandableModal extends React.Component {
+ className="modal__button" onClick={() => { this.toggleExpanded() }} />
); diff --git a/ui/js/component/reward-link.js b/ui/js/component/reward-link.js index 7dbd3046b..e9b511476 100644 --- a/ui/js/component/reward-link.js +++ b/ui/js/component/reward-link.js @@ -78,9 +78,9 @@ export class RewardLink extends React.Component { {this.props.claimed ? Reward claimed. : } + label={ this.state.pending ? "Claiming..." : "Claim Reward"} onClick={() => { this.claimReward() }} />} {this.state.errorMessage ? - + { this.clearError() }}> {this.state.errorMessage} : ''} diff --git a/ui/js/component/splash.js b/ui/js/component/splash.js index f2bc33405..e2be56b67 100644 --- a/ui/js/component/splash.js +++ b/ui/js/component/splash.js @@ -18,7 +18,7 @@ export class SplashScreen extends React.Component { } updateStatus() { - lbry.status().then(this._updateStatusCallback); + lbry.status().then((status) => { this._updateStatusCallback(status) }); } _updateStatusCallback(status) { diff --git a/ui/js/component/tooltip.js b/ui/js/component/tooltip.js index af83a2858..beab4eadd 100644 --- a/ui/js/component/tooltip.js +++ b/ui/js/component/tooltip.js @@ -29,11 +29,11 @@ export class ToolTip extends React.Component { render() { return ( - + { this.handleClick() }}> {this.props.label}
+ onMouseOut={() => { this.handleTooltipMouseOut() }}> {this.props.body}
diff --git a/ui/js/component/video/view.jsx b/ui/js/component/video/view.jsx index e4502f8d2..7490c69b1 100644 --- a/ui/js/component/video/view.jsx +++ b/ui/js/component/video/view.jsx @@ -51,9 +51,9 @@ class VideoPlayButton extends React.Component { label={label ? label : ""} className="video__play-button" icon="icon-play" - onClick={this.onWatchClick} /> + onClick={() => { this.onWatchClick() }} /> {modal} - + { this.closeModal() }}> You don't have enough LBRY credits to pay for this stream. {title} for credits. + isOpen={modal == 'timedOut'} onConfirmed={() => { this.closeModal() }} contentLabel="Timed Out"> Sorry, your download timed out :(
); diff --git a/ui/js/page/developer.js b/ui/js/page/developer.js index 8e8d618e5..96f82fa9f 100644 --- a/ui/js/page/developer.js +++ b/ui/js/page/developer.js @@ -65,25 +65,25 @@ class DeveloperPage extends React.Component {

Developer Settings

- +
- +
{this.state.useCustomLighthouseServers ?
: null}
- + { this.handleUpgradeFileChange() }}/>   - + { this.handleForceUpgradeClick() }} />
diff --git a/ui/js/page/publish/view.jsx b/ui/js/page/publish/view.jsx index b61f4a9b9..676febfe1 100644 --- a/ui/js/page/publish/view.jsx +++ b/ui/js/page/publish/view.jsx @@ -409,7 +409,7 @@ class PublishPage extends React.Component { return (
- + { this.handleSubmit(event) }}>

Content

@@ -418,7 +418,7 @@ class PublishPage extends React.Component {
- { this.onFileChange(event) }} helper={this.state.myClaimExists ? "If you don't choose a file, the file from your existing claim will be used." : null}/>
{ !this.state.hasFile ? '' : @@ -468,7 +468,7 @@ class PublishPage extends React.Component { { this.handleFeePrefChange(true) } } defaultChecked={this.state.isFee} /> - + this.handleFeeAmountChange(event)} /> { this.handleFeeCurrencyChange(event) }}> @@ -477,7 +477,7 @@ class PublishPage extends React.Component {
If you choose to price this content in dollars, the number of credits charged will be adjusted based on the value of LBRY credits at the time of purchase.
: '' } - + { this.handleLicenseChange(event) }}> @@ -492,13 +492,13 @@ class PublishPage extends React.Component { {this.state.copyrightChosen ? + value={this.state.copyrightNotice} onChange={(event) => { this.handleCopyrightNoticeChange(event) }} /> : null} {this.state.otherLicenseChosen ? - + { this.handleOtherLicenseDescriptionChange() }} /> : null} {this.state.otherLicenseChosen ? - + { this.handleOtherLicenseUrlChange(event) }} /> : null} @@ -511,7 +511,7 @@ class PublishPage extends React.Component {
- + { this.handleChannelChange(event) }} value={this.state.channel}> {this.state.channels.map(({name}) => )} @@ -519,17 +519,17 @@ class PublishPage extends React.Component {
{this.state.channel == 'new' ?
- { this.refs.newChannelName = newChannelName }} + { this.handleNewChannelNameChange(event) }} ref={newChannelName => { this.refs.newChannelName = newChannelName }} value={this.state.newChannelName} /> { this.handleNewChannelBidChange(event) }} value={this.state.newChannelBid} />
- + { this.handleCreateChannelClick(event) }} disabled={this.state.creatingChannel} />
: null} @@ -542,7 +542,7 @@ class PublishPage extends React.Component {
Where should this content permanently reside? .
- { this.handleNameChange(event) }} helper={this.getNameBidHelpText()} />
{ this.state.rawName ? @@ -552,7 +552,7 @@ class PublishPage extends React.Component { step="0.01" label="Deposit" postfix="LBC" - onChange={this.handleBidChange} + onChange={(event) => { this.handleBidChange(event) }} value={this.state.bid} placeholder={this.state.nameResolved ? this.state.topClaimValue + 10 : 100} helper={lbcInputHelp} /> @@ -566,24 +566,24 @@ class PublishPage extends React.Component {
I agree to the - } type="checkbox" name="tos_agree" ref={(field) => { this.refs.tos_agree = field }} onChange={this.handleTOSChange} /> + } type="checkbox" name="tos_agree" ref={(field) => { this.refs.tos_agree = field }} onChange={(event) => { this.handleTOSChange(event)}} />
- + { this.handleSubmit(event) }} disabled={this.state.submitting} />
+ onConfirmed={(event) => { this.handlePublishStartedConfirmed(event) }}>

Your file has been published to LBRY at the address lbry://{this.state.name}!

The file will take a few minutes to appear for other LBRY users. Until then it will be listed as "pending" under your published files.

+ onConfirmed={(event) => { this.closeModal(event) }}> The following error occurred when attempting to publish your file: {this.state.errorMessage} diff --git a/ui/js/page/report.js b/ui/js/page/report.js index 8c4b54301..5c8aee799 100644 --- a/ui/js/page/report.js +++ b/ui/js/page/report.js @@ -44,7 +44,7 @@ class ReportPage extends React.Component {