render filedrop for only authenticated users (#6466)
This commit is contained in:
parent
e44b7b929e
commit
e59c67a144
2 changed files with 16 additions and 5 deletions
|
@ -2046,5 +2046,7 @@
|
||||||
"The payment will be made from your saved card": "The payment will be made from your saved card",
|
"The payment will be made from your saved card": "The payment will be made from your saved card",
|
||||||
"A channel is required to comment on lbry.tv": "A channel is required to comment on lbry.tv",
|
"A channel is required to comment on lbry.tv": "A channel is required to comment on lbry.tv",
|
||||||
"Commenting...": "Commenting...",
|
"Commenting...": "Commenting...",
|
||||||
|
"Reset": "Reset",
|
||||||
|
"Reset to original (previous) publish date": "Reset to original (previous) publish date",
|
||||||
"--end--": "--end--"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,14 +35,22 @@ import LANGUAGE_MIGRATIONS from 'constants/language-migrations';
|
||||||
const FileDrop = lazyImport(() => import('component/fileDrop' /* webpackChunkName: "secondary" */));
|
const FileDrop = lazyImport(() => import('component/fileDrop' /* webpackChunkName: "secondary" */));
|
||||||
const ModalRouter = lazyImport(() => import('modal/modalRouter' /* webpackChunkName: "secondary" */));
|
const ModalRouter = lazyImport(() => import('modal/modalRouter' /* webpackChunkName: "secondary" */));
|
||||||
const Nag = lazyImport(() => import('component/common/nag' /* webpackChunkName: "secondary" */));
|
const Nag = lazyImport(() => import('component/common/nag' /* webpackChunkName: "secondary" */));
|
||||||
const NagContinueFirstRun = lazyImport(() => import('component/nagContinueFirstRun' /* webpackChunkName: "secondary" */));
|
const NagContinueFirstRun = lazyImport(() =>
|
||||||
|
import('component/nagContinueFirstRun' /* webpackChunkName: "secondary" */)
|
||||||
|
);
|
||||||
const OpenInAppLink = lazyImport(() => import('web/component/openInAppLink' /* webpackChunkName: "secondary" */));
|
const OpenInAppLink = lazyImport(() => import('web/component/openInAppLink' /* webpackChunkName: "secondary" */));
|
||||||
|
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
const NagDataCollection = lazyImport(() => import('web/component/nag-data-collection' /* webpackChunkName: "secondary" */));
|
const NagDataCollection = lazyImport(() =>
|
||||||
const NagDegradedPerformance = lazyImport(() => import('web/component/nag-degraded-performance' /* webpackChunkName: "secondary" */));
|
import('web/component/nag-data-collection' /* webpackChunkName: "secondary" */)
|
||||||
|
);
|
||||||
|
const NagDegradedPerformance = lazyImport(() =>
|
||||||
|
import('web/component/nag-degraded-performance' /* webpackChunkName: "secondary" */)
|
||||||
|
);
|
||||||
const NagNoUser = lazyImport(() => import('web/component/nag-no-user' /* webpackChunkName: "nag-no-user" */));
|
const NagNoUser = lazyImport(() => import('web/component/nag-no-user' /* webpackChunkName: "nag-no-user" */));
|
||||||
const YoutubeWelcome = lazyImport(() => import('web/component/youtubeReferralWelcome' /* webpackChunkName: "secondary" */));
|
const YoutubeWelcome = lazyImport(() =>
|
||||||
|
import('web/component/youtubeReferralWelcome' /* webpackChunkName: "secondary" */)
|
||||||
|
);
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
const SyncFatalError = lazyImport(() => import('component/syncFatalError' /* webpackChunkName: "syncFatalError" */));
|
const SyncFatalError = lazyImport(() => import('component/syncFatalError' /* webpackChunkName: "syncFatalError" */));
|
||||||
|
@ -169,6 +177,7 @@ function App(props: Props) {
|
||||||
const shouldMigrateLanguage = LANGUAGE_MIGRATIONS[language];
|
const shouldMigrateLanguage = LANGUAGE_MIGRATIONS[language];
|
||||||
const hasActiveChannelClaim = activeChannelClaim !== undefined;
|
const hasActiveChannelClaim = activeChannelClaim !== undefined;
|
||||||
const isPersonalized = !IS_WEB || hasVerifiedEmail;
|
const isPersonalized = !IS_WEB || hasVerifiedEmail;
|
||||||
|
const renderFiledrop = !IS_WEB || isAuthenticated;
|
||||||
|
|
||||||
let uri;
|
let uri;
|
||||||
try {
|
try {
|
||||||
|
@ -425,7 +434,7 @@ function App(props: Props) {
|
||||||
<Router />
|
<Router />
|
||||||
<React.Suspense fallback={null}>
|
<React.Suspense fallback={null}>
|
||||||
<ModalRouter />
|
<ModalRouter />
|
||||||
<FileDrop />
|
{renderFiledrop && <FileDrop />}
|
||||||
</React.Suspense>
|
</React.Suspense>
|
||||||
<FileRenderFloating />
|
<FileRenderFloating />
|
||||||
<React.Suspense fallback={null}>
|
<React.Suspense fallback={null}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue