Skip to content

Commit

Permalink
remove edits to Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
goplayoutside3 committed Jun 9, 2024
1 parent 8370182 commit 3bf726f
Showing 1 changed file with 21 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,30 @@ export default function Dashboard({ isLoading = false, user }) {
const size = useContext(ResponsiveContext)

return (
<Box
<Relative
fill
align='center'
pad={{ bottom: '20px' }}
round={size !== 'small' ? '8px' : false}
elevation={size === 'small' ? 'none' : 'xsmall'}
height={
size !== 'small'
? { min: '270px', max: '270px' }
: { min: '180px', max: '180px' }
}
background={
isLoading || !user?.profile_header
? 'brand'
: { image: `url(${user.profile_header})` }
}
round={size !== 'small' ? { size: '16px', corner: 'top' } : false}
>
<Relative
fill
align='center'
height={
size !== 'small'
? { min: '270px', max: '270px' }
: { min: '180px', max: '180px' }
<StyledAvatar
alt='User avatar'
src={
!user?.avatar_src || isLoading
? 'https://www.zooniverse.org/assets/simple-avatar.png'
: user.avatar_src
}
background={
isLoading || !user?.profile_header
? 'brand'
: { image: `url(${user.profile_header})` }
}
round={size !== 'small' ? { size: '16px', corner: 'top' } : false}
>
<StyledAvatar
alt='User avatar'
src={
!user?.avatar_src || isLoading
? 'https://www.zooniverse.org/assets/simple-avatar.png'
: user.avatar_src
}
/>
</Relative>
</Box>
/>
</Relative>
)
}

Expand Down

0 comments on commit 3bf726f

Please sign in to comment.