diff --git a/apps/comments-ui/src/App.js b/apps/comments-ui/src/App.js index 073fd13938..2f9f28e51e 100644 --- a/apps/comments-ui/src/App.js +++ b/apps/comments-ui/src/App.js @@ -295,6 +295,7 @@ export default class App extends React.Component { commentsEnabled: this.props.commentsEnabled, appVersion: this.props.appVersion, stylesUrl: this.props.stylesUrl, + publication: this.props.publication, popup, dispatchAction: (_action, data) => this.dispatchAction(_action, data), diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 9be2810bcf..67c81fed49 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -102,8 +102,8 @@ const Comment = ({updateIsEditing = null, isEditing, ...props}) => { {!isNotPublished && -
-

+
+

}
diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index 4b24fb3529..422a737906 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -83,7 +83,7 @@ const CommentsBoxContent = (props) => {
{ !isEditing - ? (member ? (isPaidMember || !paidOnly ?
: ) : ) + ? (member ? (isPaidMember || !paidOnly ? : ) : ) : null }
diff --git a/apps/comments-ui/src/components/NotPaidBox.js b/apps/comments-ui/src/components/NotPaidBox.js index c748439610..692b2dd228 100644 --- a/apps/comments-ui/src/components/NotPaidBox.js +++ b/apps/comments-ui/src/components/NotPaidBox.js @@ -2,27 +2,29 @@ import {useContext} from 'react'; import AppContext from '../AppContext'; const NotPaidBox = (props) => { - const {accentColor} = useContext(AppContext); + const {accentColor, publication} = useContext(AppContext); const buttonStyle = { backgroundColor: accentColor }; - const titleText = (props.isFirst ? 'Be first to start the conversation' : 'Want to join the discussion?'); + const titleText = (props.isFirst ? 'Start the conversation' : 'Want to join the discussion?'); const handleSubscribeClick = (event) => { window.location.href = '#/portal/signup'; }; return ( -
-

{titleText}

- -

- You need to be subscribed to a paid plan to be able to join the discussion. -

); }; diff --git a/apps/comments-ui/src/components/NotSignedInBox.js b/apps/comments-ui/src/components/NotSignedInBox.js index ea8ed386bd..b02f4cf9b4 100644 --- a/apps/comments-ui/src/components/NotSignedInBox.js +++ b/apps/comments-ui/src/components/NotSignedInBox.js @@ -2,7 +2,7 @@ import {useContext} from 'react'; import AppContext from '../AppContext'; const NotSignedInBox = (props) => { - const {accentColor} = useContext(AppContext); + const {accentColor, publication} = useContext(AppContext); const buttonStyle = { backgroundColor: accentColor @@ -12,7 +12,7 @@ const NotSignedInBox = (props) => { color: accentColor }; - const titleText = (props.isFirst ? 'Be first to start the conversation' : 'Want to join the discussion?'); + const titleText = (props.isFirst ? 'Start the conversation' : 'Want to join the discussion?'); const handleSubscribeClick = (event) => { window.location.href = '#/portal/signup'; @@ -23,9 +23,14 @@ const NotSignedInBox = (props) => { }; return ( -
-

{titleText}

-

diff --git a/apps/comments-ui/src/index.js b/apps/comments-ui/src/index.js index b16280b1a8..0e3d6c9c79 100644 --- a/apps/comments-ui/src/index.js +++ b/apps/comments-ui/src/index.js @@ -41,8 +41,9 @@ function getSiteData() { const stylesUrl = scriptTag.dataset.styles; const title = scriptTag.dataset.title === 'null' ? null : scriptTag.dataset.title; const showCount = scriptTag.dataset.count === 'true'; + const publication = 'The Off-Season'; // TODO: replace with dynamic data from script - return {siteUrl, stylesUrl, apiKey, apiUrl, sentryDsn, postId, adminUrl, colorScheme, avatarSaturation, accentColor, appVersion, commentsEnabled, title, showCount}; + return {siteUrl, stylesUrl, apiKey, apiUrl, sentryDsn, postId, adminUrl, colorScheme, avatarSaturation, accentColor, appVersion, commentsEnabled, title, showCount, publication}; } return {}; }