Commit ff8bbe79 authored by Paul Kaplan's avatar Paul Kaplan

Use message instead of censorMessage for the censor message.

parent 4a57d361
......@@ -127,13 +127,13 @@ const PreviewPresentation = ({
banner = (<Banner
actionMessage={<FormattedMessage id="project.share.shareButton" />}
className="banner-danger"
message={embedCensorMessage(visibilityInfo.censorMessage)}
message={embedCensorMessage(visibilityInfo.message)}
onAction={onShare}
/>);
} else {
banner = (<Banner
className="banner-danger"
message={embedCensorMessage(visibilityInfo.censorMessage)}
message={embedCensorMessage(visibilityInfo.message)}
/>);
}
} 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
})
......
......@@ -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
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment