File tree 2 files changed +0
-21
lines changed
2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 1
1
import { Component } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import classNames from 'classnames' ;
4
- import {
5
- colors ,
6
- spacing ,
7
- baseFontSize as defaultBaseFontSize ,
8
- } from '../shared/theme' ;
9
4
import styles from './Tooltip.module.css' ;
10
5
11
6
class Tooltip extends Component {
@@ -24,7 +19,6 @@ class Tooltip extends Component {
24
19
placement,
25
20
text,
26
21
visible : visibleProp ,
27
- theme,
28
22
multiline,
29
23
...rest
30
24
} = this . props ;
@@ -69,22 +63,12 @@ Tooltip.propTypes = {
69
63
PropTypes . arrayOf ( PropTypes . node ) ,
70
64
PropTypes . node ,
71
65
] ) . isRequired ,
72
- theme : PropTypes . shape ( {
73
- spacing : PropTypes . object ,
74
- colors : PropTypes . object ,
75
- baseFontSize : PropTypes . number ,
76
- } ) ,
77
66
} ;
78
67
79
68
Tooltip . defaultProps = {
80
69
placement : 'top' ,
81
70
visible : false ,
82
71
multiline : false ,
83
- theme : {
84
- spacing,
85
- colors,
86
- baseFontSize : defaultBaseFontSize ,
87
- } ,
88
72
} ;
89
73
90
74
export default Tooltip ;
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ export interface TooltipProps {
6
6
visible ?: boolean ;
7
7
multiline ?: boolean ;
8
8
children : ReactNode [ ] | ReactNode ;
9
- theme ?: {
10
- spacing ?: { } ;
11
- colors ?: { } ;
12
- baseFontSize ?: number ;
13
- } ;
14
9
}
15
10
16
11
declare const Tooltip : FC < TooltipProps > ;
You can’t perform that action at this time.
0 commit comments