From 9801f43d3e2c7ce953fe63e6c94211a53b1ed69e Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 19 Nov 2020 12:17:47 -0500 Subject: [PATCH] hack together a thumbnail message on the channel page --- config.js | 2 -- ui/component/channelEdit/view.jsx | 9 ++++++++- ui/component/channelThumbnail/view.jsx | 20 +++++++++++++------ ui/modal/modalConfirmThumbnailUpload/view.jsx | 2 +- ui/scss/component/_channel.scss | 15 ++++++++++++++ 5 files changed, 38 insertions(+), 10 deletions(-) diff --git a/config.js b/config.js index d62bb3f38..59121e9ae 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,6 @@ // On Desktop App, this will find .env.defaults and optional .env in root dir require('dotenv-defaults').config({ silent: false }); -console.log('process.env.SIMPLE_SITE', process.env.SIMPLE_SITE); - const config = { MATOMO_URL: process.env.MATOMO_URL, MATOMO_ID: process.env.MATOMO_ID, diff --git a/ui/component/channelEdit/view.jsx b/ui/component/channelEdit/view.jsx index cd6df1ddb..dffac967f 100644 --- a/ui/component/channelEdit/view.jsx +++ b/ui/component/channelEdit/view.jsx @@ -80,6 +80,7 @@ function ChannelForm(props: Props) { } = props; const [nameError, setNameError] = React.useState(undefined); const [bidError, setBidError] = React.useState(''); + const [coverError, setCoverError] = React.useState(false); const { claim_id: claimId } = claim || {}; const [params, setParams]: [any, (any) => void] = React.useState(getChannelParams()); const { channelName } = parseURI(uri); @@ -228,7 +229,12 @@ function ChannelForm(props: Props) { iconSize={18} /> - {params.coverUrl && } + {params.coverUrl && + (coverError ? ( +
{__('This will be visible in a few minutes.')}
+ ) : ( + setCoverError(true)} /> + ))}
); diff --git a/ui/modal/modalConfirmThumbnailUpload/view.jsx b/ui/modal/modalConfirmThumbnailUpload/view.jsx index 30dd7d6ab..f03569e39 100644 --- a/ui/modal/modalConfirmThumbnailUpload/view.jsx +++ b/ui/modal/modalConfirmThumbnailUpload/view.jsx @@ -20,7 +20,7 @@ class ModalConfirmThumbnailUpload extends React.PureComponent { render() { const { closeModal, file } = this.props; - console.log('file', file); + return (