From d775de69e7aba9b79728fd94c2b5c2df41ca0ed2 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 5 Nov 2018 16:08:27 -0500 Subject: [PATCH] Remove ToS checkbox --- src/renderer/component/publishForm/view.jsx | 36 +++++---------------- src/renderer/redux/reducers/publish.js | 3 -- 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/src/renderer/component/publishForm/view.jsx b/src/renderer/component/publishForm/view.jsx index 672dbe90c..84b4645cf 100644 --- a/src/renderer/component/publishForm/view.jsx +++ b/src/renderer/component/publishForm/view.jsx @@ -35,7 +35,6 @@ type Props = { }, channel: string, name: ?string, - tosAccepted: boolean, updatePublishForm: UpdatePublishFormData => void, nameError: ?string, isResolvingUri: boolean, @@ -248,7 +247,6 @@ class PublishForm extends React.PureComponent { title, bid, bidError, - tosAccepted, editingURI, isStillEditing, filePath, @@ -262,7 +260,6 @@ class PublishForm extends React.PureComponent { title && bid && !bidError && - tosAccepted && !(uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS); return editingURI && !filePath ? isStillEditing && formValidLessFile : formValidLessFile; } @@ -274,7 +271,6 @@ class PublishForm extends React.PureComponent { title, bid, bidError, - tosAccepted, editingURI, filePath, isStillEditing, @@ -296,7 +292,6 @@ class PublishForm extends React.PureComponent { {uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS && (
{__('Please wait for thumbnail to finish uploading')}
)} - {!tosAccepted &&
{__('You must agree to the terms of service')}
} {!!editingURI && !isStillEditing && !filePath &&
{__('You need to reselect a file after changing the LBRY URL')}
} @@ -319,7 +314,6 @@ class PublishForm extends React.PureComponent { price, channel, name, - tosAccepted, updatePublishForm, bid, nameError, @@ -593,28 +587,6 @@ class PublishForm extends React.PureComponent { /> -
-
{__('Terms of Service')}
-
- - {__('I agree to the')}{' '} -
-
-
{ />
+
+ {__('By continuing, you accept the')}{' '} +
{!formDisabled && !formValid && this.renderFormErrors()} diff --git a/src/renderer/redux/reducers/publish.js b/src/renderer/redux/reducers/publish.js index e32fe1814..0bae74065 100644 --- a/src/renderer/redux/reducers/publish.js +++ b/src/renderer/redux/reducers/publish.js @@ -20,7 +20,6 @@ type PublishState = { uploadThumbnailStatus: string, description: string, language: string, - tosAccepted: boolean, channel: string, channelId: ?string, name: string, @@ -44,7 +43,6 @@ export type UpdatePublishFormData = { thumbnailPath?: string, description?: string, language?: string, - tosAccepted?: boolean, channel?: string, channelId?: string, name?: string, @@ -103,7 +101,6 @@ const defaultState: PublishState = { nsfw: false, channel: CHANNEL_ANONYMOUS, channelId: '', - tosAccepted: false, name: '', nameError: undefined, bid: 0.1,