From ff8bbe79b46623d67051550dcc38e871ccfdc067 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 4 Dec 2018 16:29:46 -0500 Subject: [PATCH] Use message instead of censorMessage for the censor message. --- src/views/preview/presentation.jsx | 6 +++--- src/views/preview/project-view.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index a85c5fdc7..3accc66fd 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -127,13 +127,13 @@ const PreviewPresentation = ({ banner = (} className="banner-danger" - message={embedCensorMessage(visibilityInfo.censorMessage)} + message={embedCensorMessage(visibilityInfo.message)} onAction={onShare} />); } else { banner = (); } } else if (canShare) { @@ -595,7 +595,7 @@ PreviewPresentation.propTypes = { userOwnsProject: PropTypes.bool, visibilityInfo: PropTypes.shape({ censored: PropTypes.bool, - censorMessage: PropTypes.string, + message: PropTypes.string, deleted: PropTypes.bool, reshareable: PropTypes.bool }) diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index 58502e0dc..8f7c1111e 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -649,7 +649,7 @@ Preview.propTypes = { userPresent: PropTypes.bool, visibilityInfo: PropTypes.shape({ censored: PropTypes.bool, - censorMessage: PropTypes.string, + message: PropTypes.string, deleted: PropTypes.bool, reshareable: PropTypes.bool })