Skip to content

Commit 3d5369a

Browse files
committed
cast color-mode-related properties to any
1 parent 381dcc3 commit 3d5369a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/editor/src/Theme/Colors.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ type ColorPaletteRenderArg = {
1616

1717
const Colors = (props: ColorsProps) => {
1818
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
2121
const { colors } = context.theme
2222

2323
const onChange = (key: string) => (val: { hex: string }) => {
@@ -27,8 +27,8 @@ const Colors = (props: ColorsProps) => {
2727
colors &&
2828
colors.modes &&
2929
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
3232
) {
3333
next = {
3434
colors: {

0 commit comments

Comments
 (0)