diff --git a/src/common/components/follow-controls/index.tsx b/src/common/components/follow-controls/index.tsx index c1e72f6f2d4..13d1427bade 100644 --- a/src/common/components/follow-controls/index.tsx +++ b/src/common/components/follow-controls/index.tsx @@ -140,14 +140,19 @@ export default class FollowControls extends BaseComponent { const muteMsg = _t("follow-controls.mute"); const unMuteMsg = _t("follow-controls.unMute"); - const btnFollow = LoginRequired({ - ...this.props, - children: ( - - ) - }); + const btnFollow = + this.props.activeUser?.username !== this.props.targetUsername ? ( + LoginRequired({ + ...this.props, + children: ( + + ) + }) + ) : ( + <> + ); const btnUnfollow = LoginRequired({ ...this.props, diff --git a/src/common/pages/sign-up.scss b/src/common/pages/sign-up.scss index 5a61ca8f8fb..abd13bb5ddb 100644 --- a/src/common/pages/sign-up.scss +++ b/src/common/pages/sign-up.scss @@ -98,6 +98,13 @@ } } + .bottom-description, + .form-faq { + opacity: 0.7; + text-align: center; + margin-bottom: 10px; + } + .form-done { margin: 20px auto; text-align: center; @@ -134,14 +141,6 @@ form { margin-bottom: 30px; } - - .form-do-login, - .form-bottom-description, - .form-faq { - opacity: 0.7; - text-align: center; - margin-bottom: 10px; - } } } } diff --git a/src/common/pages/sign-up.tsx b/src/common/pages/sign-up.tsx index a0b59fa32e8..268400278e8 100644 --- a/src/common/pages/sign-up.tsx +++ b/src/common/pages/sign-up.tsx @@ -176,6 +176,7 @@ export const SignUp = (props: PageProps) => { } else { setDone(true); setLsReferral(undefined); + setStage(Stage.FORM); } } catch (e) { if (axios.isAxiosError(e) && e.response?.data?.message) { @@ -226,7 +227,7 @@ export const SignUp = (props: PageProps) => { Signup
- {!done && stage === Stage.FORM ? ( + {stage === Stage.FORM ? ( <>
{_t("sign-up.header")}
{_t("sign-up.description")}
@@ -238,6 +239,15 @@ export const SignUp = (props: PageProps) => {
Signup
+ +
+ {_t("sign-up.bottom-description")} +
+ + +
+ + {done ? (
{checkSvg}
@@ -255,14 +265,8 @@ export const SignUp = (props: PageProps) => { )} {!done && stage === Stage.FORM ? (
-
- {_t("sign-up.bottom-description")} -
- -
- -
{ e.preventDefault(); @@ -383,7 +387,11 @@ export const SignUp = (props: PageProps) => {
{_t("sign-up.free-account-desc")}
-
diff --git a/src/style/_bootstrap_vars.scss b/src/style/_bootstrap_vars.scss index 4b6008f040b..c63ca959d9d 100644 --- a/src/style/_bootstrap_vars.scss +++ b/src/style/_bootstrap_vars.scss @@ -24,4 +24,4 @@ $list-group-action-active-bg-d: $gray-200; $border-color-d: $gray-300; // App variables -$box-shadow-alt: 0 .1rem 1rem rgba($black, .10); \ No newline at end of file +$box-shadow-alt: 0 .1rem 1rem rgba($black, .10);