Merge pull request #3729 from lbryio/noNagOnEmbeds

no nag on embeds / auth verify
This commit is contained in:
jessopb 2020-02-22 01:02:40 -05:00 committed by GitHub
commit 92eefb604a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,7 @@ function App(props: Props) {
uri = newpath + hash;
} catch (e) {}
const noNagOnPage = pathname.startsWith(`/$/${PAGES.EMBED}`) || pathname.startsWith(`/$/${PAGES.AUTH_VERIFY}`);
// @if TARGET='web'
function handleAnalyticsDismiss() {
setShowAnalyticsNag(false);
@ -249,7 +250,7 @@ function App(props: Props) {
)}
{/* @endif */}
{/* @if TARGET='web' */}
{showAnalyticsNag && (
{showAnalyticsNag && !noNagOnPage && (
<React.Fragment>
{isMobile ? (
<Nag