Skip to content

Commit f4c82ca

Browse files
committed
Test theming
1 parent 3483393 commit f4c82ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.2.08",
3+
"version": "0.2.09",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/utils/themeProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { merge } from "lodash";
33
import { Theme } from "Types";
44

55
interface ThemeProviderProps {
6-
theme?: Theme;
6+
theme: Theme;
77
children?: React.ReactNode;
88
}
99

@@ -51,7 +51,7 @@ export const useTheme = () => useContext(ThemeContext) ?? defaultTheme;
5151

5252
export const ThemeProvider = ({ theme, children }: ThemeProviderProps) => {
5353
return (
54-
<ThemeContext.Provider value={merge(defaultTheme, theme)}>
54+
<ThemeContext.Provider value={theme}>
5555
{children}
5656
</ThemeContext.Provider>
5757
);

0 commit comments

Comments
 (0)