Skip to content

Commit ace0f1f

Browse files
Remove warning for unhandled ui-box props now that v7 has landed (#1603)
1 parent 347ecb8 commit ace0f1f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/hooks/use-style-config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useMemo, useRef } from 'react'
22
import merge from 'lodash.merge'
33
import isEqual from 'react-fast-compare'
44
import { splitBoxProps } from 'ui-box'
5-
import warning from '../lib/warning'
65
import { useTheme, get, resolveThemeTokens } from '../theme'
76

87
/**
@@ -109,10 +108,6 @@ function useBoxProps(styleProps, placeholderSelectors) {
109108

110109
const result = { ...matchedProps }
111110
if (!isEqual({}, remainingProps)) {
112-
warning(
113-
process.env.NODE_ENV === 'development',
114-
`Assigning unhandled ui-box props to 'style':\n${JSON.stringify(remainingProps, undefined, 4)}`
115-
)
116111
result.style = remainingProps
117112
}
118113

0 commit comments

Comments
 (0)