diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-07-05 21:50:51 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-07-06 00:20:11 +0200 |
commit | 382407bbc131dc215acf0585907e879457d1698c (patch) | |
tree | 8302c103a6da1f0ab943042b0bde985b80fb05bf /subprojects/frontend/src/theme | |
parent | build: fix ESLint in VSCode (diff) | |
download | refinery-382407bbc131dc215acf0585907e879457d1698c.tar.gz refinery-382407bbc131dc215acf0585907e879457d1698c.tar.zst refinery-382407bbc131dc215acf0585907e879457d1698c.zip |
refactor(frontend): fix React warnings
Diffstat (limited to 'subprojects/frontend/src/theme')
-rw-r--r-- | subprojects/frontend/src/theme/ThemeProvider.tsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/subprojects/frontend/src/theme/ThemeProvider.tsx b/subprojects/frontend/src/theme/ThemeProvider.tsx index 1d70dbaf..b8d5ba8d 100644 --- a/subprojects/frontend/src/theme/ThemeProvider.tsx +++ b/subprojects/frontend/src/theme/ThemeProvider.tsx | |||
@@ -385,10 +385,6 @@ function ThemeAndContrastThemeProvider({ | |||
385 | ); | 385 | ); |
386 | } | 386 | } |
387 | 387 | ||
388 | ThemeAndContrastThemeProvider.defaultProps = { | ||
389 | children: undefined, | ||
390 | }; | ||
391 | |||
392 | export function ContrastThemeProvider({ | 388 | export function ContrastThemeProvider({ |
393 | children, | 389 | children, |
394 | }: { | 390 | }: { |
@@ -405,10 +401,6 @@ export function ContrastThemeProvider({ | |||
405 | ); | 401 | ); |
406 | } | 402 | } |
407 | 403 | ||
408 | ContrastThemeProvider.defaultProps = { | ||
409 | children: undefined, | ||
410 | }; | ||
411 | |||
412 | const ThemeProvider = observer(function ThemeProvider({ | 404 | const ThemeProvider = observer(function ThemeProvider({ |
413 | children, | 405 | children, |
414 | }: { | 406 | }: { |
@@ -428,8 +420,4 @@ const ThemeProvider = observer(function ThemeProvider({ | |||
428 | ); | 420 | ); |
429 | }); | 421 | }); |
430 | 422 | ||
431 | ThemeProvider.defaultProps = { | ||
432 | children: undefined, | ||
433 | }; | ||
434 | |||
435 | export default ThemeProvider; | 423 | export default ThemeProvider; |