Update load media message
This commit is contained in:
@ -4,6 +4,7 @@ import { FileExtensionRegex } from "Const";
|
|||||||
import Reveal from "Element/Reveal";
|
import Reveal from "Element/Reveal";
|
||||||
import useLogin from "Hooks/useLogin";
|
import useLogin from "Hooks/useLogin";
|
||||||
import { MediaElement } from "Element/MediaElement";
|
import { MediaElement } from "Element/MediaElement";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
interface RevealMediaProps {
|
interface RevealMediaProps {
|
||||||
creator: string;
|
creator: string;
|
||||||
@ -51,7 +52,16 @@ export default function RevealMedia(props: RevealMediaProps) {
|
|||||||
if (hideMedia) {
|
if (hideMedia) {
|
||||||
return (
|
return (
|
||||||
<Reveal
|
<Reveal
|
||||||
message={<FormattedMessage defaultMessage="Click to load content from {link}" values={{ link: hostname }} />}>
|
message={
|
||||||
|
<FormattedMessage
|
||||||
|
defaultMessage="You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody."
|
||||||
|
values={{
|
||||||
|
i: i => <i>{i}</i>,
|
||||||
|
a: a => <Link to="/settings/preferences">{a}</Link>,
|
||||||
|
link: hostname,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}>
|
||||||
<MediaElement mime={`${type}/${extension}`} url={url.toString()} onMediaClick={props.onMediaClick} />
|
<MediaElement mime={`${type}/${extension}`} url={url.toString()} onMediaClick={props.onMediaClick} />
|
||||||
</Reveal>
|
</Reveal>
|
||||||
);
|
);
|
||||||
|
@ -461,6 +461,9 @@
|
|||||||
"HbefNb": {
|
"HbefNb": {
|
||||||
"defaultMessage": "Open Wallet"
|
"defaultMessage": "Open Wallet"
|
||||||
},
|
},
|
||||||
|
"HhcAVH": {
|
||||||
|
"defaultMessage": "You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody."
|
||||||
|
},
|
||||||
"IDjHJ6": {
|
"IDjHJ6": {
|
||||||
"defaultMessage": "Thanks for using Snort, please consider donating if you can."
|
"defaultMessage": "Thanks for using Snort, please consider donating if you can."
|
||||||
},
|
},
|
||||||
|
@ -151,6 +151,7 @@
|
|||||||
"HOzFdo": "Muted",
|
"HOzFdo": "Muted",
|
||||||
"HWbkEK": "Clear cache and reload",
|
"HWbkEK": "Clear cache and reload",
|
||||||
"HbefNb": "Open Wallet",
|
"HbefNb": "Open Wallet",
|
||||||
|
"HhcAVH": "You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody.",
|
||||||
"IDjHJ6": "Thanks for using Snort, please consider donating if you can.",
|
"IDjHJ6": "Thanks for using Snort, please consider donating if you can.",
|
||||||
"IEwZvs": "Are you sure you want to unpin this note?",
|
"IEwZvs": "Are you sure you want to unpin this note?",
|
||||||
"IKKHqV": "Follows",
|
"IKKHqV": "Follows",
|
||||||
|
Reference in New Issue
Block a user