Skip to content

Commit 7dff9f8

Browse files
authored
Merge pull request #4854 from DaleMcGrew/Dale_WebApp_Jun27-2026
Because we altered "Sign In or Join" text to "Sign in | Join", I needed to convert two props coming into SignInModal over to node from string.
2 parents 5fce5f9 + bfc6e3d commit 7dff9f8

21 files changed

Lines changed: 64 additions & 61 deletions

src/js/common/components/SignIn/SignInModal.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ class SignInModal extends Component {
8383
renderLog('SignInModal'); // Set LOG_RENDER_EVENTS to log all renders
8484
const {
8585
classes,
86-
signedInContentHeader = (<></>),
87-
signedInContentSubHeader = (<></>),
88-
signInSubTitle = '',
89-
signInTitle = '',
90-
signedInTitle = (<></>),
91-
signedOutTitle = (<></>),
86+
signedInContentHeader = <></>,
87+
signedInContentSubHeader = <></>,
88+
signInSubTitle = <></>,
89+
signInTitle = <></>,
90+
signedInTitle = <></>,
91+
signedOutTitle = <></>,
9292
} = this.props;
9393
const { isSignedIn, showSignInModalSimple } = this.state;
9494

@@ -159,8 +159,8 @@ SignInModal.propTypes = {
159159
classes: PropTypes.object,
160160
signedInContentHeader: PropTypes.node,
161161
signedInContentSubHeader: PropTypes.node,
162-
signInSubTitle: PropTypes.string,
163-
signInTitle: PropTypes.string,
162+
signInSubTitle: PropTypes.node,
163+
signInTitle: PropTypes.node,
164164
signedInTitle: PropTypes.node,
165165
signedOutTitle: PropTypes.node,
166166
toggleOnClose: PropTypes.func,

src/js/common/components/SignIn/SignInOptionsPanel.jsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export default class SignInOptionsPanel extends Component {
5252
isOnWeVoteRootUrl: true,
5353
isOnWeVotePartnerSubdomainUrl: false,
5454
isOnFacebookSupportedDomainUrl: false,
55-
pleaseSignInTitleFromState: '',
56-
pleaseSignInSubTitle: '',
55+
pleaseSignInTitleFromState: <></>,
56+
pleaseSignInSubTitle: <></>,
5757
showTwitterDisconnect: false,
5858
showRecommendedText: false,
5959
};
@@ -99,14 +99,14 @@ export default class SignInOptionsPanel extends Component {
9999

100100
if (this.props.pleaseSignInTitle || this.props.pleaseSignInSubTitle || this.props.pleaseSignInTextOff) {
101101
this.setState({
102-
pleaseSignInTitleFromState: this.props.pleaseSignInTitle || '',
103-
pleaseSignInSubTitle: this.props.pleaseSignInSubTitle || '',
102+
pleaseSignInTitleFromState: this.props.pleaseSignInTitle || <></>,
103+
pleaseSignInSubTitle: this.props.pleaseSignInSubTitle || <></>,
104104
}, () => this.localStoreSignInStartFullUrl());
105105
} else if (getStartedMode && getStartedMode === 'startup') {
106106
// js/pages/Startup
107107
this.setState({
108-
pleaseSignInTitleFromState: '',
109-
pleaseSignInSubTitle: '',
108+
pleaseSignInTitleFromState: <></>,
109+
pleaseSignInSubTitle: <></>,
110110
showRecommendedText: false,
111111
});
112112
pathname = '/settings/profile';
@@ -125,8 +125,8 @@ export default class SignInOptionsPanel extends Component {
125125
Cookies.set('sign_in_start_full_url', signInStartFullUrl, { expires: 31, path: '/' });
126126
}
127127
this.setState({
128-
pleaseSignInTitleFromState: 'Please sign in to get started.',
129-
pleaseSignInSubTitle: 'Use Twitter to verify your account most quickly.',
128+
pleaseSignInTitleFromState: <>Please sign in to get started.</>,
129+
pleaseSignInSubTitle: <>Use Twitter to verify your account most quickly.</>,
130130
});
131131
} else if (getStartedMode && getStartedMode === 'getStartedForOrganizations') {
132132
pathname = '/settings/profile';
@@ -138,8 +138,8 @@ export default class SignInOptionsPanel extends Component {
138138
Cookies.set('sign_in_start_full_url', signInStartFullUrl, { expires: 1, path: '/' });
139139
}
140140
this.setState({
141-
pleaseSignInTitleFromState: 'Please sign in to get started.',
142-
pleaseSignInSubTitle: 'Use Twitter to verify your account most quickly.',
141+
pleaseSignInTitleFromState: <>Please sign in to get started.</>,
142+
pleaseSignInSubTitle: <>Use Twitter to verify your account most quickly.</>,
143143
});
144144
} else if (getStartedMode && getStartedMode === 'getStartedForVoters') {
145145
pathname = '/settings/profile';
@@ -151,19 +151,19 @@ export default class SignInOptionsPanel extends Component {
151151
Cookies.set('sign_in_start_full_url', signInStartFullUrl, { expires: 1, path: '/' });
152152
}
153153
this.setState({
154-
pleaseSignInTitleFromState: 'Please sign in to get started.',
155-
pleaseSignInSubTitle: '',
154+
pleaseSignInTitleFromState: <>Please sign in to get started.</>,
155+
pleaseSignInSubTitle: <></>,
156156
});
157157
} else {
158158
const isOnWeVoteRootUrl = AppObservableStore.isOnWeVoteRootUrl();
159159
const isOnWeVotePartnerSubdomainUrl = AppObservableStore.isOnWeVotePartnerSubdomainUrl();
160160
// No need to query an api to get this answer. Creates an unneeded dependency: const isOnFacebookSupportedDomainUrl = AppObservableStore.isOnFacebookSupportedDomainUrl() || window.location.href.includes('ngrok');
161-
let pleaseSignInSubTitle = '';
161+
let pleaseSignInSubTitle = <></>;
162162
if (isOnWeVoteRootUrl || isOnWeVotePartnerSubdomainUrl || isOnFacebookSupportedDomainUrl) {
163-
pleaseSignInSubTitle = '';
163+
pleaseSignInSubTitle = <></>;
164164
}
165165
this.setState({
166-
pleaseSignInTitleFromState: '',
166+
pleaseSignInTitleFromState: <></>,
167167
pleaseSignInSubTitle,
168168
}, () => this.localStoreSignInStartFullUrl());
169169
}
@@ -672,8 +672,8 @@ SignInOptionsPanel.propTypes = {
672672
externalUniqueId: PropTypes.string,
673673
inModal: PropTypes.bool,
674674
pleaseSignInTextOff: PropTypes.bool,
675-
pleaseSignInTitle: PropTypes.string,
676-
pleaseSignInSubTitle: PropTypes.string,
675+
pleaseSignInTitle: PropTypes.node,
676+
pleaseSignInSubTitle: PropTypes.node,
677677
closeSignInModal: PropTypes.func,
678678
focusedOnSingleInputToggle: PropTypes.func,
679679
};

src/js/common/pages/ChallengeStart/ChallengeStartPreview.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ class ChallengeStartPreview extends Component {
183183
{ showSignInModal && (
184184
<Suspense fallback={<></>}>
185185
<SignInModal
186-
signInTitle="Sign in to publish your Democracy Challenge"
187-
signInSubTitle="You can continue making changes after signing in."
186+
signInTitle={<>Sign in to publish your Democracy Challenge</>}
187+
signInSubTitle={<>You can continue making changes after signing in.</>}
188188
toggleOnClose={this.toggleShowSignInModal}
189189
uponSuccessfulSignIn={this.functionToUseWhenSignedIn}
190190
/>

src/js/components/Activity/ActivityPostPublicToggle.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ class ActivityPostPublicToggle extends Component {
191191
<div>
192192
<Suspense fallback={<></>}>
193193
<SignInOptionsPanel
194-
pleaseSignInTitle="Sign In to Make Your Posts Public"
195-
pleaseSignInSubTitle=""
194+
pleaseSignInTitle={<>Sign In to Make Your Posts Public</>}
195+
pleaseSignInSubTitle={<></>}
196196
inModal
197197
/>
198198
</Suspense>

src/js/components/Ballot/PositionRowEmpty.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class PositionRowEmpty extends Component {
153153
{ showSignInModal && (
154154
<Suspense fallback={<></>}>
155155
<SignInModal
156-
signInTitle="Sign in to ask your friends"
157-
signInSubTitle=""
156+
signInTitle={<>Sign in to ask your friends</>}
157+
signInSubTitle={<></>}
158158
toggleOnClose={this.closeSignInModal}
159159
uponSuccessfulSignIn={this.askFriendsSignInComplete}
160160
/>

src/js/components/CompleteYourProfile/CompleteYourProfileOnBallot.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ class CompleteYourProfileOnBallot extends Component {
381381
{(showSignInModal && !VoterStore.getVoterIsSignedIn()) && (
382382
<Suspense fallback={<></>}>
383383
<SignInModal
384-
signInTitle="Sign in or join to save your ballot choices & settings"
385-
signInSubTitle=""
384+
signInTitle={<>Sign in or join to save your ballot choices & settings</>}
385+
signInSubTitle={<></>}
386386
toggleOnClose={this.toggleShowSignInModal}
387387
uponSuccessfulSignIn={this.toggleShowSignInModal}
388388
/>

src/js/components/Friends/AddFriendsByEmail.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ class AddFriendsByEmail extends Component {
335335
</Alert>
336336
<Suspense fallback={<></>}>
337337
<SignInOptionsPanel
338-
pleaseSignInTitle="Sign In to Send Your Friend Requests"
339-
pleaseSignInSubTitle=""
338+
pleaseSignInTitle={<>Sign In to Send Your Friend Requests</>}
339+
pleaseSignInSubTitle={<></>}
340340
/>
341341
</Suspense>
342342
</>

src/js/components/Friends/FindFriendsStart.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ class FindFriendsStart extends Component {
147147
<SetUpSignInOptionsPanelWrapper>
148148
<Suspense fallback={<></>}>
149149
<SignInOptionsPanel
150-
pleaseSignInTitle={(contactsWithAccountCount > 0) ? 'Sign in to connect with your friends' : ''}
151-
pleaseSignInSubTitle={(contactsWithAccountCount > 0) ? 'After you sign in, you will be able to choose which friends to collaborate with.' : ''}
150+
pleaseSignInTitle={(contactsWithAccountCount > 0) ? <>Sign in to connect with your friends</> : <></>}
151+
pleaseSignInSubTitle={(contactsWithAccountCount > 0) ? <>After you sign in, you will be able to choose which friends to collaborate with.</> : <></>}
152152
/>
153153
</Suspense>
154154
</SetUpSignInOptionsPanelWrapper>

src/js/components/Navigation/HeaderBackTo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class HeaderBackTo extends Component {
275275
<Suspense fallback={<></>}>
276276
<SignInModal
277277
signInTitle={<SignInJoinText />}
278-
signInSubTitle=""
278+
signInSubTitle={<></>}
279279
toggleOnClose={this.closeSignInModal}
280280
uponSuccessfulSignIn={this.closeSignInModal}
281281
/>

src/js/components/Navigation/HeaderBackToBallot.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ class HeaderBackToBallot extends Component {
800800
<Suspense fallback={<></>}>
801801
<SignInModal
802802
signInTitle={<SignInJoinText />}
803-
signInSubTitle=""
803+
signInSubTitle={<></>}
804804
toggleOnClose={this.closeSignInModal}
805805
uponSuccessfulSignIn={this.closeSignInModal}
806806
/>

0 commit comments

Comments
 (0)