@@ -50,6 +50,7 @@ type ColorConfigProps = {
50
50
gridColumns ?: string ; // Added By Aqib Mirza
51
51
showComponentLoadingIndicators ?: boolean ;
52
52
showDataLoadingIndicators ?: boolean ;
53
+ canvasItemValue ?: string ;
53
54
} ;
54
55
55
56
export default function ThemeSettingsSelector ( props : ColorConfigProps ) {
@@ -70,6 +71,7 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
70
71
fontFamily : defaultFontFamily ,
71
72
showComponentLoadingIndicators : defaultShowComponentLoaders ,
72
73
showDataLoadingIndicators : defaultShowDataLoaders ,
74
+ canvasItemValue : defaultCanvasItemValue ,
73
75
} = props ;
74
76
75
77
const configChangeWithDebounce = _ . debounce ( configChange , 0 ) ;
@@ -84,6 +86,7 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
84
86
const [ fontFamily , setFontFamily ] = useState ( defaultFontFamily ) ;
85
87
const [ showComponentLoaders , setComponentLoaders ] = useState ( defaultShowComponentLoaders ) ;
86
88
const [ showDataLoaders , setDataLoaders ] = useState ( defaultShowDataLoaders ) ;
89
+ const [ canvasValue , setCanvasValue ] = useState ( defaultCanvasItemValue ) ;
87
90
88
91
const varName = `(${ themeSettingKey } )` ;
89
92
@@ -245,6 +248,10 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
245
248
setDataLoaders ( defaultShowDataLoaders ) ;
246
249
} , [ defaultShowDataLoaders ] ) ;
247
250
251
+ useEffect ( ( ) => {
252
+ setCanvasValue ( defaultCanvasItemValue ) ;
253
+ } , [ defaultCanvasItemValue ] ) ;
254
+
248
255
return (
249
256
< ConfigItem className = { props . className } >
250
257
{ themeSettingKey !== "showDataLoadingIndicators"
0 commit comments