e3bbb6fcef
NSFW content is obscured on show page and gives an overlay to inform the user. Fixes #286 Added one additional format(epub) in lbry.js.
22 lines
490 B
JavaScript
22 lines
490 B
JavaScript
import React from "react";
|
|
import Link from "component/link";
|
|
|
|
const NsfwOverlay = props => {
|
|
return (
|
|
<div className="card-overlay">
|
|
<p>
|
|
{__(
|
|
"This content is Not Safe For Work. To view adult content, please change your"
|
|
)}{" "}
|
|
{" "}{" "}
|
|
<Link
|
|
className="button-text"
|
|
onClick={() => props.navigateSettings()}
|
|
label={__("Settings")}
|
|
/>.
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default NsfwOverlay;
|