aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/theme
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-07-05 21:50:51 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-07-06 00:20:11 +0200
commit382407bbc131dc215acf0585907e879457d1698c (patch)
tree8302c103a6da1f0ab943042b0bde985b80fb05bf /subprojects/frontend/src/theme
parentbuild: fix ESLint in VSCode (diff)
downloadrefinery-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.tsx12
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
388ThemeAndContrastThemeProvider.defaultProps = {
389 children: undefined,
390};
391
392export function ContrastThemeProvider({ 388export function ContrastThemeProvider({
393 children, 389 children,
394}: { 390}: {
@@ -405,10 +401,6 @@ export function ContrastThemeProvider({
405 ); 401 );
406} 402}
407 403
408ContrastThemeProvider.defaultProps = {
409 children: undefined,
410};
411
412const ThemeProvider = observer(function ThemeProvider({ 404const 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
431ThemeProvider.defaultProps = {
432 children: undefined,
433};
434
435export default ThemeProvider; 423export default ThemeProvider;