File tree 1 file changed +3
-1
lines changed
src/components/colorPicker
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Button from '../button';
8
8
import ColorPalette , { ColorPaletteProps } from '../colorPalette' ;
9
9
import { SWATCH_MARGIN , SWATCH_SIZE } from '../colorSwatch' ;
10
10
import ColorPickerDialog , { ColorPickerDialogProps } from './ColorPickerDialog' ;
11
+ import type { ComponentStatics } from '../../typings/common' ;
11
12
12
13
interface Props extends ColorPickerDialogProps , Pick < ColorPaletteProps , 'onValueChange' > {
13
14
/**
@@ -117,8 +118,9 @@ const ColorPicker = (props: Props) => {
117
118
} ;
118
119
119
120
ColorPicker . displayName = 'ColorPicker' ;
121
+ ColorPicker . Dialog = ColorPickerDialog ;
120
122
121
- export default asBaseComponent < Props > ( ColorPicker ) ;
123
+ export default asBaseComponent < Props , ComponentStatics < typeof ColorPicker > > ( ColorPicker ) ;
122
124
123
125
const plusButtonContainerWidth = SWATCH_SIZE + 20 + 12 ;
124
126
const plusButtonContainerHeight = 92 - 2 * SWATCH_MARGIN ;
You can’t perform that action at this time.
0 commit comments