Merge pull request #3729 from lbryio/noNagOnEmbeds
no nag on embeds / auth verify
This commit is contained in:
commit
92eefb604a
1 changed files with 2 additions and 1 deletions
|
@ -112,6 +112,7 @@ function App(props: Props) {
|
||||||
uri = newpath + hash;
|
uri = newpath + hash;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
|
const noNagOnPage = pathname.startsWith(`/$/${PAGES.EMBED}`) || pathname.startsWith(`/$/${PAGES.AUTH_VERIFY}`);
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
function handleAnalyticsDismiss() {
|
function handleAnalyticsDismiss() {
|
||||||
setShowAnalyticsNag(false);
|
setShowAnalyticsNag(false);
|
||||||
|
@ -249,7 +250,7 @@ function App(props: Props) {
|
||||||
)}
|
)}
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
{/* @if TARGET='web' */}
|
{/* @if TARGET='web' */}
|
||||||
{showAnalyticsNag && (
|
{showAnalyticsNag && !noNagOnPage && (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{isMobile ? (
|
{isMobile ? (
|
||||||
<Nag
|
<Nag
|
||||||
|
|
Loading…
Reference in a new issue