1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 11:18:16 +00:00

Indent small enhancements

This commit is contained in:
Vladimir Volek 2018-08-17 12:39:15 +02:00
parent 9cff1868d2
commit 8c4d68f49c

View File

@ -6,26 +6,22 @@ import { TRANSITION_TIME } from 'config/variables';
const Wrapper = styled.div` const Wrapper = styled.div`
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
cursor: pointer;
transition: background-color ${TRANSITION_TIME.BASE}, color ${TRANSITION_TIME.BASE};
${props => props.column && css` ${props => props.column && css`
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
`} `}
cursor: pointer;
transition: background-color ${TRANSITION_TIME.BASE}, color ${TRANSITION_TIME.BASE};
`; `;
const Row = ({ const Row = ({ children, column = false }) => (
children, column = false, <Wrapper column={column}>
}) => ( {children}
<Wrapper
column={column}
>{children}
</Wrapper> </Wrapper>
); );