Last active
February 10, 2021 17:13
-
-
Save DZuz14/d1f0c1e69db6ad5c8d2f9b172652eb91 to your computer and use it in GitHub Desktop.
filler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const StatRow = ({ stat }) => { | |
const { away, home } = stat; | |
return ( | |
<div> | |
<Stat> | |
<div> | |
<TeamRank marginRight={10}>#{away.team_rank}</TeamRank> | |
<StatValue>{away.stat_value}</StatValue> | |
</div> | |
<StatName>{away.stat_name}</StatName> | |
<div> | |
<StatValue>{home.stat_value}</StatValue> | |
<TeamRank marginLeft={10}>#{home.team_rank}</TeamRank> | |
</div> | |
</Stat> | |
<BarGroup> | |
<Bar> | |
<Filler | |
color="#F5B947" | |
width={75} | |
/> | |
</Bar> | |
<Bar> | |
<Filler | |
color="#EE7F31" | |
width={50} | |
/> | |
</Bar> | |
</BarGroup> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment