fix: remove "Don't fork the repo"-Button - fixes #5723 (#5872)

This commit is contained in:
Andi Pabst
2021-10-15 15:45:47 +02:00
committed by GitHub
parent ed3814af66
commit 05d89230dc
2 changed files with 20 additions and 4 deletions

View File

@ -62,6 +62,17 @@ const LoginButton = styled.button`
position: relative;
`;
const TextButton = styled.button`
${buttons.button};
${buttons.default};
${buttons.grayText};
margin-top: 40px;
display: flex;
align-items: center;
position: relative;
`;
function AuthenticationPage({
onLogin,
loginDisabled,
@ -76,7 +87,9 @@ function AuthenticationPage({
<StyledAuthenticationPage>
{renderPageLogo(logoUrl)}
{loginErrorMessage ? <p>{loginErrorMessage}</p> : null}
{!renderPageContent ? null : renderPageContent({ LoginButton })}
{!renderPageContent
? null
: renderPageContent({ LoginButton, TextButton, showAbortButton: !siteUrl })}
{!renderButtonContent ? null : (
<LoginButton disabled={loginDisabled} onClick={onLogin}>
{renderButtonContent()}