chore: cleanup warnings (#3469)

This commit is contained in:
Erez Rokah
2020-03-23 13:09:06 +02:00
committed by GitHub
parent df33bc64a9
commit ce69fdd66b
3 changed files with 18 additions and 6 deletions

View File

@ -164,6 +164,7 @@ export default class GitGatewayAuthenticationPage extends React.Component {
return (
<AuthenticationPage
logoUrl={config.logo_url}
siteUrl={config.site_url}
onLogin={this.handleIdentity}
renderPageContent={() => (
<a
@ -174,14 +175,17 @@ export default class GitGatewayAuthenticationPage extends React.Component {
{errors.identity}
</a>
)}
t={t}
/>
);
} else {
return (
<AuthenticationPage
logoUrl={config.logo_url}
siteUrl={config.site_url}
onLogin={this.handleIdentity}
renderButtonContent={() => t('auth.loginWithNetlifyIdentity')}
t={t}
/>
);
}