sunset link

This commit is contained in:
zeppi 2021-08-06 13:28:58 -04:00 committed by jessopb
parent 4bcd5942af
commit 4b64c35360

View file

@ -4,6 +4,7 @@ import Nag from 'component/common/nag';
import I18nMessage from 'component/i18nMessage';
import * as PAGES from 'constants/pages';
import { useHistory } from 'react-router';
import Button from '../../ui/component/button';
type Props = {
email?: User,
@ -20,7 +21,15 @@ export default function NagSunset(props: Props) {
return (
<Nag
type="helpful"
message={<I18nMessage>lbry.tv has been retired. You have been magically transported to odysee.com</I18nMessage>}
message={
<I18nMessage
tokens={{
more: <Button button={'link'} label={__('more')} href="https://odysee.com/@lbry:3f/retirement" />,
}}
>
lbry.tv has been retired (%more%). You have been magically transported to Odysee.com
</I18nMessage>
}
actionText={__('Sign In')}
onClick={!email ? handleOnClick : undefined}
onClose={onClose}