Repair image loaded event for ImgCover
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user