File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
import styled from '@emotion/styled'
2
- import PropTypes from 'prop-types'
3
2
4
3
import {
5
4
combineStyles ,
@@ -47,8 +46,7 @@ Box.displayName = 'Box'
47
46
48
47
Box . propTypes = {
49
48
...BoxBase . propTypes ,
50
- ...styles . propTypes ,
51
- initialCSS : PropTypes . object
49
+ ...styles . propTypes
52
50
}
53
51
54
52
export {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const Flex = styled(Box)(
24
24
)
25
25
26
26
Flex . displayName = 'Flex'
27
- Flex . propTypes = { ...styles . propTypes }
27
+ Flex . propTypes = { ...styles . propTypes , ... Box . propTypes }
28
28
Flex . defaultProps = { display : 'flex' }
29
29
30
30
export {
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ const Grid = styled(Box)(
31
31
)
32
32
33
33
Grid . displayName = 'Grid'
34
- Grid . propTypes = { ...styles . propTypes }
34
+ Grid . propTypes = { ...styles . propTypes , ... Box . propTypes }
35
35
Grid . defaultProps = { display : 'grid' }
36
36
37
37
const GridItem = styled ( Box ) (
38
38
gridItem
39
39
)
40
40
41
41
GridItem . displayName = 'Grid.Item'
42
- GridItem . propTypes = { ...gridItem . propTypes }
42
+ GridItem . propTypes = { ...gridItem . propTypes , ... Box . propTypes }
43
43
Grid . Item = GridItem
44
44
45
45
export {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const Text = styled(TextBase)(
22
22
)
23
23
24
24
Text . displayName = 'Text'
25
- Text . propTypes = { ...styles . propTypes }
25
+ Text . propTypes = { ...styles . propTypes , ... Box . propTypes }
26
26
27
27
export {
28
28
Text
You can’t perform that action at this time.
0 commit comments