Repair image loaded event for ImgCover

This commit is contained in:
Qolzam
2017-07-06 12:25:15 +04:30
parent 26f69973b6
commit 11d0cbae39
2 changed files with 2 additions and 1 deletions

View File

@@ -153,6 +153,7 @@ export class ImgCover extends Component {
<div>Image has not loaded</div> <div>Image has not loaded</div>
</div> </div>
</div> </div>
<img onLoad={this.handleLoadImage} src={this.props.avatarURL[fileName] || ''} style={{ display: 'none'}} />
</div> </div>
) )
} }

View File

@@ -181,7 +181,7 @@ export class ProfileHead extends Component {
<div> <div>
<Parallax strength={500} className="profile__parallax" bgStyle={{ position: 'relative' }}> <Parallax strength={500} className="profile__parallax" bgStyle={{ position: 'relative' }}>
<Background> <Background>
<ImgCover width='100%' height='510px' borderRadius='2px' fileName={this.props.banner || '13e1fc2f-0484-42ef-a61f-75f4b5b20a37.jpeg'} /> <ImgCover width='100%' height='510px' borderRadius='2px' fileName={this.props.banner || "a955488e-4a78-4bfb-8e8d-e0eb345386cd.jpeg"} />
</Background> </Background>
</Parallax> </Parallax>