Update load media message
This commit is contained in:
parent
2f9e1eb5c8
commit
29410ca276
@ -4,6 +4,7 @@ import { FileExtensionRegex } from "Const";
|
||||
import Reveal from "Element/Reveal";
|
||||
import useLogin from "Hooks/useLogin";
|
||||
import { MediaElement } from "Element/MediaElement";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
interface RevealMediaProps {
|
||||
creator: string;
|
||||
@ -51,7 +52,16 @@ export default function RevealMedia(props: RevealMediaProps) {
|
||||
if (hideMedia) {
|
||||
return (
|
||||
<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} />
|
||||
</Reveal>
|
||||
);
|
||||
|
@ -461,6 +461,9 @@
|
||||
"HbefNb": {
|
||||
"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": {
|
||||
"defaultMessage": "Thanks for using Snort, please consider donating if you can."
|
||||
},
|
||||
|
@ -151,6 +151,7 @@
|
||||
"HOzFdo": "Muted",
|
||||
"HWbkEK": "Clear cache and reload",
|
||||
"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.",
|
||||
"IEwZvs": "Are you sure you want to unpin this note?",
|
||||
"IKKHqV": "Follows",
|
||||
|
Loading…
x
Reference in New Issue
Block a user