1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

removed deprecated object-form .attrs({})

This commit is contained in:
slowbackspace 2018-12-10 13:22:22 +01:00
parent 2564bf9dfb
commit d7d55beb62
2 changed files with 8 additions and 17 deletions

View File

@ -19,11 +19,8 @@ type State = {
footerFixed: boolean,
}
const AsideWrapper = styled.aside.attrs({
style: ({ minHeight }) => ({
minHeight,
}),
})`
const AsideWrapper = styled.aside`
min-height: ${props => props.minHeight}px;
position: relative;
top: 0px;
width: 320px;
@ -33,13 +30,10 @@ const AsideWrapper = styled.aside.attrs({
border-right: 1px solid ${colors.DIVIDER};
`;
const StickyContainerWrapper = styled.div.attrs({
style: ({ top, left, paddingBottom }) => ({
top,
left,
paddingBottom,
}),
})`
const StickyContainerWrapper = styled.div`
top: ${props => props.top}px;
left: ${props => props.left}px;
padding-bottom: ${props => props.paddingBottom}px;
position: fixed;
border-right: 1px solid ${colors.DIVIDER};
width: 320px;

View File

@ -44,11 +44,8 @@ const TransitionContentWrapper = styled.div`
vertical-align: top;
`;
const Footer = styled.div.attrs({
style: ({ position }) => ({
position,
}),
})`
const Footer = styled.div`
position: ${props => props.position};
width: 320px;
bottom: 0;
background: ${colors.MAIN};