File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import { ChakraProvider , extendTheme } from "@chakra-ui/react"
22import { createContext } from "react"
33import type { RsiProps } from "../types"
4- import { colorSchemeOverrides , CustomTheme , themeOverrides } from "../theme"
4+ import type { CustomTheme } from "../theme"
55
66export const RsiContext = createContext ( { } as any )
77
@@ -14,8 +14,9 @@ type ProvidersProps<T extends string> = {
1414export const rootId = "chakra-modal-rsi"
1515
1616export const Providers = < T extends string > ( { children, theme, rsiValues } : ProvidersProps < T > ) => {
17- const mergedTheme = extendTheme ( colorSchemeOverrides , theme )
17+ const mergedTheme = extendTheme ( theme )
1818
19+ console . log ( mergedTheme )
1920 if ( ! rsiValues . fields ) {
2021 throw new Error ( "Fields must be provided to react-spreadsheet-import" )
2122 }
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ export const themeOverrides = {
104104 } ,
105105 dropZoneBorder : "rsi.500" ,
106106 dropzoneButton : {
107- bg : "rsi.500" ,
108107 mt : "1rem" ,
109108 } ,
110109 } ,
@@ -373,6 +372,11 @@ export const themeOverrides = {
373372 } ,
374373 } ,
375374 } ,
375+ Button : {
376+ defaultProps : {
377+ colorScheme : "rsi" ,
378+ } ,
379+ } ,
376380 } ,
377381 styles : {
378382 global : {
@@ -472,9 +476,4 @@ export const themeOverrides = {
472476 } ,
473477} as const
474478
475- export const colorSchemeOverrides = withDefaultColorScheme ( {
476- colorScheme : "rsi" ,
477- components : [ "Button" ] ,
478- } )
479-
480479export type CustomTheme = DeepPartial < typeof themeOverrides >
You can’t perform that action at this time.
0 commit comments