feat: allow custom logo on auth page (#1818)

This commit is contained in:
Bartholomew
2018-11-02 18:25:36 +01:00
committed by Shawn Erquhart
parent ede1bad97c
commit c6ae1e8fc0
7 changed files with 56 additions and 6 deletions

View File

@ -44,12 +44,13 @@ export default class GitHubAuthenticationPage extends React.Component {
};
render() {
const { inProgress } = this.props;
const { inProgress, config } = this.props;
return (
<AuthenticationPage
onLogin={this.handleLogin}
loginDisabled={inProgress}
loginErrorMessage={this.state.loginError}
logoUrl={config.get('logo_url')}
renderButtonContent={() => (
<React.Fragment>
<LoginButtonIcon type="github" /> {inProgress ? 'Logging in...' : 'Login with GitHub'}