Merge pull request #4078 from lbryio/fix-lbrytvDegradeImports

prevent loading tv degrade components in app
This commit is contained in:
jessopb 2020-04-25 16:29:57 -04:00 committed by GitHub
commit 5d94d33492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ import OpenInAppLink from 'lbrytv/component/openInAppLink';
import YoutubeWelcome from 'lbrytv/component/youtubeReferralWelcome';
import NagDegradedPerformance from 'lbrytv/component/nag-degraded-performance';
import NagDataCollection from 'lbrytv/component/nag-data-collection';
// @endif
import {
useDegradedPerformance,
STATUS_OK,
@ -29,6 +29,7 @@ import {
STATUS_FAILING,
STATUS_DOWN,
} from 'lbrytv/effects/use-degraded-performance';
// @endif
export const MAIN_WRAPPER_CLASS = 'main-wrapper';
// @if TARGET='app'
export const IS_MAC = process.platform === 'darwin';
@ -110,8 +111,8 @@ function App(props: Props) {
const previousRewardApproved = usePrevious(isRewardApproved);
// @if TARGET='web'
const [showAnalyticsNag, setShowAnalyticsNag] = usePersistedState('analytics-nag', true);
// @endif
const [lbryTvApiStatus, setLbryTvApiStatus] = useState(STATUS_OK);
// @endif
const { pathname, hash, search } = props.location;
const showUpgradeButton = autoUpdateDownloaded || (process.platform === 'linux' && isUpgradeAvailable);
// referral claiming