File tree 2 files changed +4
-4
lines changed
packages/core/src/components
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { useRef } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import { TooltipProvider , Tooltip } from '@nivo/tooltip'
4
4
import { ThemeProvider } from '../theming'
5
- import { MotionConfigProvider } from '../motion'
5
+ import { MotionConfigProvider , motionPropTypes } from '../motion'
6
6
import { ConditionalWrapper } from './ConditionalWrapper'
7
7
8
8
const containerStyle = {
@@ -43,7 +43,7 @@ Container.propTypes = {
43
43
renderWrapper : PropTypes . bool ,
44
44
theme : PropTypes . object ,
45
45
animate : PropTypes . bool ,
46
- motionConfig : PropTypes . string ,
46
+ motionConfig : PropTypes . oneOfType ( [ PropTypes . string , motionPropTypes . motionConfig ] ) ,
47
47
}
48
48
49
49
export default Container
Original file line number Diff line number Diff line change 8
8
} from '@nivo/tooltip'
9
9
import noop from '../lib/noop'
10
10
import { ThemeProvider } from '../theming'
11
- import { MotionConfigProvider } from '../motion'
11
+ import { MotionConfigProvider , motionPropTypes } from '../motion'
12
12
import { ConditionalWrapper } from './ConditionalWrapper'
13
13
14
14
const containerStyle = {
@@ -72,5 +72,5 @@ LegacyContainer.propTypes = {
72
72
renderWrapper : PropTypes . bool ,
73
73
theme : PropTypes . object . isRequired ,
74
74
animate : PropTypes . bool . isRequired ,
75
- motionConfig : PropTypes . string ,
75
+ motionConfig : PropTypes . oneOfType ( [ PropTypes . string , motionPropTypes . motionConfig ] ) ,
76
76
}
You can’t perform that action at this time.
0 commit comments