sunset link
This commit is contained in:
parent
4bcd5942af
commit
4b64c35360
1 changed files with 10 additions and 1 deletions
|
@ -4,6 +4,7 @@ import Nag from 'component/common/nag';
|
||||||
import I18nMessage from 'component/i18nMessage';
|
import I18nMessage from 'component/i18nMessage';
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import { useHistory } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
|
import Button from '../../ui/component/button';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
email?: User,
|
email?: User,
|
||||||
|
@ -20,7 +21,15 @@ export default function NagSunset(props: Props) {
|
||||||
return (
|
return (
|
||||||
<Nag
|
<Nag
|
||||||
type="helpful"
|
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')}
|
actionText={__('Sign In')}
|
||||||
onClick={!email ? handleOnClick : undefined}
|
onClick={!email ? handleOnClick : undefined}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
|
|
Loading…
Add table
Reference in a new issue