diff --git a/src/ui/component/channelContent/view.jsx b/src/ui/component/channelContent/view.jsx index 309664b70..2c95fea42 100644 --- a/src/ui/component/channelContent/view.jsx +++ b/src/ui/component/channelContent/view.jsx @@ -38,7 +38,7 @@ function ChannelContent(props: Props) { {hasContent && claim.permanent_url)} />} fetchClaims(uri, page)} + onPageChange={page => console.log('fetch') || fetchClaims(uri, page)} totalPages={totalPages} loading={fetching && !hasContent} /> diff --git a/src/ui/component/userEmailVerify/view.jsx b/src/ui/component/userEmailVerify/view.jsx index d196844f6..2d528200b 100644 --- a/src/ui/component/userEmailVerify/view.jsx +++ b/src/ui/component/userEmailVerify/view.jsx @@ -1,9 +1,9 @@ // @flow import * as React from 'react'; import Button from 'component/button'; +import cookie from 'cookie'; type Props = { - cancelButton: React.Node, email: string, resendVerificationEmail: string => void, checkEmailVerified: () => void, @@ -47,7 +47,19 @@ class UserEmailVerify extends React.PureComponent { emailVerifyCheckInterval: ?IntervalID; render() { - const { cancelButton, email } = this.props; + const { email } = this.props; + + // Below is duplicated in UserEmail + // This should just be a UserEmailResetButton component + const buttonProps = IS_WEB + ? { + onClick: () => { + clearInterval(this.emailVerifyCheckInterval); + document.cookie = cookie.serialize('auth_token', ''); + window.location.reload(); + }, + } + : { href: 'https://lbry.com/faq/how-to-change-email' }; return ( @@ -67,7 +79,8 @@ class UserEmailVerify extends React.PureComponent { label={__('Resend verification email')} onClick={this.handleResendVerificationEmail} /> - {cancelButton} + +