fix settings link
This commit is contained in:
parent
2a123509f7
commit
4f62606e22
2 changed files with 18 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
import * as PAGES from 'constants/pages';
|
||||||
|
import * as ICONS from 'constants/icons';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import * as ICONS from 'constants/icons';
|
|
||||||
import Icon from 'component/common/icon';
|
import Icon from 'component/common/icon';
|
||||||
import I18nMessage from 'component/i18nMessage';
|
import I18nMessage from 'component/i18nMessage';
|
||||||
|
|
||||||
|
@ -15,8 +16,15 @@ export default function HiddenNsfw(props: Props) {
|
||||||
return (
|
return (
|
||||||
<div className="section--padded section__subtitle">
|
<div className="section--padded section__subtitle">
|
||||||
<Icon className="icon--hidden" icon={ICONS.EYE_OFF} />
|
<Icon className="icon--hidden" icon={ICONS.EYE_OFF} />
|
||||||
<I18nMessage tokens={{ type, settings: <Button button="link" label={__('settings')} href="/$/settings" /> }}>
|
<I18nMessage
|
||||||
Content may be hidden on this %type% because of your %settings%
|
tokens={{
|
||||||
|
type,
|
||||||
|
settings: (
|
||||||
|
<Button button="link" label={__('settings')} navigate={`/$/${PAGES.SETTINGS}`} requiresAuth={IS_WEB} />
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Content may be hidden on this %type% because of your %settings%.
|
||||||
</I18nMessage>
|
</I18nMessage>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -813,5 +813,10 @@
|
||||||
"Claimed Rewards": "Claimed Rewards",
|
"Claimed Rewards": "Claimed Rewards",
|
||||||
"This feature is not yet available for wallets with balances, but the gerbils are working on it.": "This feature is not yet available for wallets with balances, but the gerbils are working on it.",
|
"This feature is not yet available for wallets with balances, but the gerbils are working on it.": "This feature is not yet available for wallets with balances, but the gerbils are working on it.",
|
||||||
"I Understand": "I Understand",
|
"I Understand": "I Understand",
|
||||||
"No modifier provided after separator %modSeperator%.": "No modifier provided after separator %modSeperator%."
|
"No modifier provided after separator %modSeperator%.": "No modifier provided after separator %modSeperator%.",
|
||||||
}
|
"Show anonymous content": "Show anonymous content",
|
||||||
|
"Anonymous content is published without a channel.": "Anonymous content is published without a channel.",
|
||||||
|
"settings": "settings",
|
||||||
|
"Content may be hidden on this %type% because of your %settings%": "Content may be hidden on this %type% because of your %settings%",
|
||||||
|
"Content may be hidden on this %type% because of your %settings%.": "Content may be hidden on this %type% because of your %settings%."
|
||||||
|
}
|
Loading…
Reference in a new issue