mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 21:45:56 +03:00
fix(landing): for twitter auth, redirect to /auth
This commit is contained in:
parent
239a871ad5
commit
150110d326
@ -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();
|
||||
};
|
||||
|
@ -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" }} />
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user