Fix build errors
This commit is contained in:
parent
c44651015e
commit
221f60c48c
2 changed files with 7 additions and 7 deletions
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
img {
|
img {
|
||||||
$diameter: $unit * 6;
|
$diameter: $unit * 6;
|
||||||
border-radius: $diameter / 2;
|
border-radius: calc($diameter / 2);
|
||||||
height: $diameter;
|
height: $diameter;
|
||||||
width: $diameter;
|
width: $diameter;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,14 +119,14 @@ const GridRep = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const userImage = () => {
|
const userImage = () => {
|
||||||
if (props.user && props.user.picture) {
|
if (props.user && props.user.avatar) {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
alt={props.user.picture.picture}
|
alt={props.user.avatar.picture}
|
||||||
className={`profile ${props.user.picture.element}`}
|
className={`profile ${props.user.avatar.element}`}
|
||||||
srcSet={`/profile/${props.user.picture.picture}.png,
|
srcSet={`/profile/${props.user.avatar.picture}.png,
|
||||||
/profile/${props.user.picture.picture}@2x.png 2x`}
|
/profile/${props.user.avatar.picture}@2x.png 2x`}
|
||||||
src={`/profile/${props.user.picture.picture}.png`}
|
src={`/profile/${props.user.avatar.picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
} else return <div className="no-user" />
|
} else return <div className="no-user" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue