File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/editor/src/Theme Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ type ColorPaletteRenderArg = {
16
16
17
17
const Colors = ( props : ColorsProps ) => {
18
18
const context = useThemeUI ( ) as EditorContextValue
19
- // FIXME: Where to add colorMode type?
20
- const mode = context . colorMode
19
+ // TODO: Remove any after @theme -ui/color-mode was transformed to TypeScript
20
+ const mode = ( context as any ) . colorMode
21
21
const { colors } = context . theme
22
22
23
23
const onChange = ( key : string ) => ( val : { hex : string } ) => {
@@ -27,8 +27,8 @@ const Colors = (props: ColorsProps) => {
27
27
colors &&
28
28
colors . modes &&
29
29
colors . modes [ mode ] &&
30
- // FIXME: Where to add initialColorMode type?
31
- mode !== context . theme . initialColorMode
30
+ // TODO: Remove any after @theme -ui/color-mode was transformed to TypeScript
31
+ mode !== ( context . theme as any ) . initialColorMode
32
32
) {
33
33
next = {
34
34
colors : {
You can’t perform that action at this time.
0 commit comments