
* Feat: - Introduce screen_hint param in /authorize for explicit signup redirection * Feat: - Declare variable for base path and signup path - Add social login on signup page * Refactor: - Update variable name for screen hint param
30 lines
726 B
TypeScript
30 lines
726 B
TypeScript
import React, { Fragment } from 'react';
|
|
import { AuthorizerSignup, AuthorizerSocialLogin } from '@authorizerdev/authorizer-react';
|
|
import styled from 'styled-components';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
const FooterContent = styled.div`
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 20px;
|
|
`;
|
|
|
|
export default function SignUp({
|
|
urlProps,
|
|
}: {
|
|
urlProps: Record<string, any>;
|
|
}) {
|
|
return (
|
|
<Fragment>
|
|
<h1 style={{ textAlign: 'center' }}>Sign Up</h1>
|
|
<br />
|
|
<AuthorizerSocialLogin urlProps={urlProps} />
|
|
<AuthorizerSignup urlProps={urlProps} />
|
|
<FooterContent>
|
|
Already have an account? <Link to="/app"> Login</Link>
|
|
</FooterContent>
|
|
</Fragment>
|
|
);
|
|
}
|