Skip to content

Commit

Permalink
fix(components/CollectiveStatsCard): make collective avatar into a link
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Jul 17, 2018
1 parent 34aeb40 commit 0be200d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/components/CollectiveStatsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,19 @@ const CollectiveStatsCard = ({
>

<Container position="absolute" display="flex" alignItems="flex-end" justifyContent="center" height="100%" width="100%" top={10} left={0}>
<Container
bg="#2877ED"
backgroundImage={image || defaultImage[type]}
backgroundSize="contain"
backgroundRepeat="no-repeat"
backgroundPosition="center center"
borderRadius={12}
border="2px solid white"
height={[52, null, 65]}
width={[52, null, 65]}
/>
<Link route={`/${slug}`} passHref><a>
<Container
bg="#2877ED"
backgroundImage={image || defaultImage[type]}
backgroundSize="contain"
backgroundRepeat="no-repeat"
backgroundPosition="center center"
borderRadius={12}
border="2px solid white"
height={[52, null, 65]}
width={[52, null, 65]}
/>
</a></Link>
</Container>
</Container>

Expand Down

0 comments on commit 0be200d

Please sign in to comment.