fix(landing): for twitter auth, redirect to /auth

This commit is contained in:
Aminejv 2022-01-21 18:14:39 +01:00 committed by Martina
parent 239a871ad5
commit 150110d326
3 changed files with 2 additions and 4 deletions

View File

@ -94,7 +94,7 @@ export default class CTATransition extends React.Component {
const currentURL = Strings.getCurrentURL(this.props.page?.params);
this.props.onAction({
type: "NAVIGATE",
href: `/_/auth?tab=twitter&redirect=${encodeURI(currentURL)}`,
href: `/_/auth?redirect=${encodeURI(currentURL)}`,
});
this._handleClose();
};

View File

@ -1206,7 +1206,7 @@ export default function IndexPage() {
<div css={STYLES_AUTH_MODAL}>
<System.ButtonPrimaryFull
type="link"
href="/_/auth?tab=twitter"
href="/_/auth"
style={{ backgroundColor: "#1DA1F2" }}
>
<SVGLogo.Twitter height="14px" style={{ marginRight: "16px" }} />

View File

@ -94,8 +94,6 @@ const AuthScene = ({ onAuthenticate, onTwitterAuthenticate, page, onAction, ...p
React.useEffect(() => {
if (!initialScreenRef.current) return;
if (page?.params?.tab === "twitter") twitterProvider.signin();
if (page?.params?.tab === "signup" && page?.params?.email)
initialScreenRef.current.submitSignupForm();