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 {
|
||||
$diameter: $unit * 6;
|
||||
border-radius: $diameter / 2;
|
||||
border-radius: calc($diameter / 2);
|
||||
height: $diameter;
|
||||
width: $diameter;
|
||||
|
||||
|
|
|
|||
|
|
@ -119,14 +119,14 @@ const GridRep = (props: Props) => {
|
|||
}
|
||||
|
||||
const userImage = () => {
|
||||
if (props.user && props.user.picture) {
|
||||
if (props.user && props.user.avatar) {
|
||||
return (
|
||||
<img
|
||||
alt={props.user.picture.picture}
|
||||
className={`profile ${props.user.picture.element}`}
|
||||
srcSet={`/profile/${props.user.picture.picture}.png,
|
||||
/profile/${props.user.picture.picture}@2x.png 2x`}
|
||||
src={`/profile/${props.user.picture.picture}.png`}
|
||||
alt={props.user.avatar.picture}
|
||||
className={`profile ${props.user.avatar.element}`}
|
||||
srcSet={`/profile/${props.user.avatar.picture}.png,
|
||||
/profile/${props.user.avatar.picture}@2x.png 2x`}
|
||||
src={`/profile/${props.user.avatar.picture}.png`}
|
||||
/>
|
||||
)
|
||||
} else return <div className="no-user" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue