Skip to content

Commit

Permalink
feat(settings): fixed alignemnt
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Feb 24, 2021
1 parent 9433ecb commit 2687a34
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ const IconsContainer = styled.div`
justify-content: flex-end;
width: 100%;
`
const ContentItem = styled.div<{ isClickable?: boolean }>`

const Item = styled.div<{ isClickable?: boolean }>`
border-top: 1px solid ${props => props.theme.grey000};
padding: 20px 40px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
cursor: ${props => (props.isClickable ? 'pointer' : 'auto')};
`

const ContentItem = styled(Item)`
align-items: center;
`
const IconWrapper = styled.div`
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -244,7 +248,7 @@ const Template: React.FC<Props> = props => {
</HeaderWrapper>

<MainContent>
<ContentItem
<Item
onClick={() =>
isUserVerifiedSilver
? null
Expand Down Expand Up @@ -290,9 +294,9 @@ const Template: React.FC<Props> = props => {
</TierDescription>

{getTierStatus(currentTier, TIER_TYPES.SILVER, silverTier)}
</ContentItem>
</Item>

<ContentItem
<Item
onClick={() =>
isUserGold || isGoldInreview
? null
Expand Down Expand Up @@ -352,7 +356,7 @@ const Template: React.FC<Props> = props => {
TIER_TYPES.GOLD,
goldTier
)}
</ContentItem>
</Item>

<ContentItem>
<IconWrapper>
Expand Down

0 comments on commit 2687a34

Please sign in to comment.