Created
February 9, 2021 19:07
-
-
Save DZuz14/ea6a4d48c4a32b413f319045867458b1 to your computer and use it in GitHub Desktop.
stat
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 Stat = styled.div` | |
display: flex; | |
flex-direction: row; | |
align-items: center; | |
justify-content: space-between; | |
width: 100%; | |
`; | |
const TeamRank = styled.span` | |
`; | |
const StatValue = styled.span` | |
`; | |
const StatName = styled.span` | |
`; | |
const StatRow = ({ stat }) => { | |
const { away, home } = stat; | |
return ( | |
<div> | |
<Stat> | |
<TeamRank>#{away.team_rank}</TeamRank> | |
<StatValue>{away.stat_value}</StatValue> | |
<StatName>{away.stat_name}</StatName> | |
<StatValue>{home.stat_value}</StatValue> | |
<TeamRank>#{home.team_rank}</TeamRank> | |
</Stat> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment