Replaced site logo span with img

This commit is contained in:
Peter Zimon 2020-09-18 09:34:37 +02:00
parent e3e79d5c5d
commit 20007db0c7
4 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,7 @@ const DEV_MODE_DATA = {
showPopup: true,
site: Fixtures.site,
member: Fixtures.member.paid,
page: 'signin'
page: 'accountHome'
};
export default class App extends React.Component {
constructor(props) {

View File

@ -442,7 +442,6 @@ const GlobalStyles = `
display: flex;
align-items: center;
justify-content: space-between;
flex-grow: 1;
}
.gh-portal-list {

View File

@ -118,7 +118,7 @@ export default class SigninPage extends React.Component {
if (siteLogo) {
logoStyle.backgroundImage = `url(${siteLogo})`;
return (
<span className='gh-portal-signup-logo' style={logoStyle}></span>
<img className='gh-portal-signup-logo' src={siteLogo} alt={this.context.site.title} />
);
}
return null;

View File

@ -379,7 +379,7 @@ class SignupPage extends React.Component {
if (siteLogo) {
logoStyle.backgroundImage = `url(${siteLogo})`;
return (
<span className='gh-portal-signup-logo' style={logoStyle}> </span>
<img className='gh-portal-signup-logo' src={siteLogo} alt={site.title} />
);
}
return null;