Skip to content

Commit 90646e7

Browse files
author
sagiv.bengiat
committed
resolve #50 and #47 (missing attr)
1 parent bfb5e44 commit 90646e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import styled from "styled-components";
22

3-
export default styled.div`
3+
export default styled.div.attrs(props => ({
4+
style: {
5+
height: props.size.height
6+
}
7+
}))`
48
display: flex;
59
flex-direction: row;
610
width: 100%;
7-
height: ${({ size }) => `${size.height}px`};
811
`;

0 commit comments

Comments
 (0)