update subtitle
This commit is contained in:
parent
74345da0fb
commit
8ae17adde1
1 changed files with 1 additions and 12 deletions
|
@ -65,15 +65,6 @@ export default function LivestreamSetupPage(props: Props) {
|
||||||
ENABLE_NO_SOURCE_CLAIMS && user && !liveDisabled && (liveEnabled || odyseeMembership || hasEnoughLBCToStream)
|
ENABLE_NO_SOURCE_CLAIMS && user && !liveDisabled && (liveEnabled || odyseeMembership || hasEnoughLBCToStream)
|
||||||
);
|
);
|
||||||
|
|
||||||
let reasonAllowedToStream = '';
|
|
||||||
if (odyseeMembership) {
|
|
||||||
reasonAllowedToStream = 'you purchased Odysee Premium';
|
|
||||||
} else if (liveEnabled) {
|
|
||||||
reasonAllowedToStream = 'your livestreaming was turned on manually';
|
|
||||||
} else if (hasEnoughLBCToStream) {
|
|
||||||
reasonAllowedToStream = 'you have enough staked LBC';
|
|
||||||
}
|
|
||||||
|
|
||||||
function createStreamKey() {
|
function createStreamKey() {
|
||||||
if (!channelId || !channelName || !sigData.signature || !sigData.signing_ts) return null;
|
if (!channelId || !channelName || !sigData.signature || !sigData.signing_ts) return null;
|
||||||
return `${channelId}?d=${toHex(channelName)}&s=${sigData.signature}&t=${sigData.signing_ts}`;
|
return `${channelId}?d=${toHex(channelName)}&s=${sigData.signature}&t=${sigData.signing_ts}`;
|
||||||
|
@ -260,9 +251,7 @@ export default function LivestreamSetupPage(props: Props) {
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
title={__('Go Live on Odysee')}
|
title={__('Go Live on Odysee')}
|
||||||
subtitle={
|
subtitle={<>{__(`Expand to learn more about setting up a livestream.`)} </>}
|
||||||
<>{__(`Congratulations, you have access to livestreaming because ${reasonAllowedToStream}!`)} </>
|
|
||||||
}
|
|
||||||
actions={showHelp && helpText}
|
actions={showHelp && helpText}
|
||||||
/>
|
/>
|
||||||
{streamKey && totalLivestreamClaims.length > 0 && (
|
{streamKey && totalLivestreamClaims.length > 0 && (
|
||||||
|
|
Loading…
Add table
Reference in a new issue