Skip to content

Commit

Permalink
login --> sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
lightninglu10 committed Jul 22, 2020
1 parent cb09e9d commit d69f14e
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 21 deletions.
5 changes: 1 addition & 4 deletions components/DiscussionPostMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ const DiscussionPostMetadata = (props) => {
const promptFlagConfirmation = () => {
if (!isLoggedIn) {
dispatch(
ModalActions.openLoginModal(
true,
"Please login with Google to continue."
)
ModalActions.openLoginModal(true, "Please sign in Google to continue.")
);
} else {
return alert.show({
Expand Down
2 changes: 1 addition & 1 deletion components/GoogleLoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const GoogleLoginButton = (props) => {
rippleClass={props.rippleClass}
customLabelStyle={props.customLabelStyle}
customIconStyle={[styles.iconStyle, props.iconStyle]}
label={customLabel ? customLabel : "Login with Google"}
label={customLabel ? customLabel : "Sign In with Google"}
/>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion components/Hubs/LiveFeedNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class LiveFeedNotification extends React.Component {
let isLoggedIn = auth.isLoggedIn;

if (!isLoggedIn) {
openLoginModal(true, "Please login with Google to continue.");
openLoginModal(true, "Please Sign in with Google to continue.");
} else {
return alert.show({
text: `Are you sure you want to ${
Expand Down
2 changes: 1 addition & 1 deletion components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const Navbar = (props) => {
styles={[styles.loginMobile]}
iconStyle={styles.googleIcon}
rippleClass={styles.rippleClass}
customLabel="Login"
customLabel="Sign In"
customLabelStyle={[styles.googleLabelMobile]}
isLoggedIn
/>
Expand Down
2 changes: 1 addition & 1 deletion components/OrcidConnectButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const OrcidConnectButton = (props) => {
icon={"/static/icons/orcid.png"}
customLabelStyle={customLabelStyle}
customIconStyle={[styles.iconStyle, iconStyle]}
label={customLabel ? customLabel : "Login with ORCID"}
label={customLabel ? customLabel : "Sign in ORCID"}
/>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/OrcidLoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const OrcidLoginButton = (props) => {
icon={"/static/icons/orcid.png"}
customLabelStyle={customLabelStyle}
customIconStyle={[styles.iconStyle, iconStyle]}
label={customLabel ? customLabel : "Login with ORCID"}
label={customLabel ? customLabel : "Sign in ORCID"}
/>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/ResearchHubBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ResearchHubBanner extends React.Component {
styles={styles.googleLoginButton}
googleLogin={this.props.googleLogin}
getUser={this.props.getUser}
customLabel={"Sign up with Google"}
customLabel={"Sign in with Google"}
/>
)}
</span>
Expand Down
2 changes: 1 addition & 1 deletion components/TextEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const TextEditor = (props) => {
async function submit(content, plain_text, callback) {
let success = false;
if (!isLoggedIn) {
openLoginModal(true, "Please login with Google to continue.");
openLoginModal(true, "Please Sign in with Google to continue.");
} else {
if (isQuillEmpty(content)) {
props.setMessage("Content cannot be empty.");
Expand Down
8 changes: 4 additions & 4 deletions components/modal/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LoginModal extends React.Component {
});

if (this.props.auth.loginFailed) {
this.props.setMessage("Login failed");
this.props.setMessage("Sign in failed");
this.props.showMessage({ show: true, error: true });
}
};
Expand All @@ -60,11 +60,11 @@ class LoginModal extends React.Component {
<BaseModal
isOpen={modals.openLoginModal}
closeModal={this.closeModal}
title={"Login to your account"}
title={"Sign in to your account"}
subtitle={
modals.loginModal.flavorText
? modals.loginModal.flavorText
: "Login with your Google account"
: "Sign in with your Google account"
}
backgroundImage={true}
>
Expand All @@ -82,7 +82,7 @@ class LoginModal extends React.Component {
customButtonStyle={styles.button}
icon={"/static/icons/google.png"}
customIconStyle={styles.iconStyle}
label={"Login with Google"}
label={"Sign in with Google"}
/>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/modal/SignUpModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const SignUpModal = (props) => {
</div>

<div className={css(styles.googleButton)}>
<GoogleLoginButton customLabel={"Sign up with Google"} />
<GoogleLoginButton customLabel={"Sign in with Google"} />
</div>
{renderDivider()}
<div className={css(styles.loginContainer)}>
Expand Down
4 changes: 2 additions & 2 deletions components/modal/SignUpOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ class SignUpOverlay extends React.Component {
</div>
<div className={css(styles.googleButton)}>
<GoogleLoginButton
customLabel={"Sign up with Google"}
customLabel={"Sign in with Google"}
loginCallback={this.closeBanner}
/>
</div>
{this.renderDivider()}
<div className={css(styles.loginContainer)}>
{"Already a member? "}
<GoogleLoginButton
customLabel={"Login"}
customLabel={"Sign in"}
hideButton={true}
loginCallback={this.closeBanner}
/>
Expand Down
4 changes: 2 additions & 2 deletions pages/about/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ class Index extends React.Component {
trigger="- How can I help?"
>
<p className={css(styles.subtext, styles.wideText)}>
{`The easiest way to help the community grow is to sign up and start contributing content.\n\n`}
<b>1. Sign up</b>
{`The easiest way to help the community grow is to sign in and start contributing content.\n\n`}
<b>1. Sign in</b>
{"\n"}Create your account in just a few clicks, using Google
Sign In.{"\n\n"}
<b>2. Upload a paper</b>
Expand Down
2 changes: 1 addition & 1 deletion pages/orcid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class OrcidLoginPage extends React.Component {
<React.Fragment>
<h1 className={css(styles.header)}>We're almost done!</h1>
<p className={css(styles.description)}>
Confirm your email address to complete login with Orcid.
Confirm your email address to complete Sign in with Orcid.
</p>
</React.Fragment>
</div>
Expand Down

0 comments on commit d69f14e

Please sign in to comment.