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/PaneButtons.tsx | |
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/PaneButtons.tsx')
-rw-r--r-- | subprojects/frontend/src/PaneButtons.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/subprojects/frontend/src/PaneButtons.tsx b/subprojects/frontend/src/PaneButtons.tsx index 7c759c36..0c265709 100644 --- a/subprojects/frontend/src/PaneButtons.tsx +++ b/subprojects/frontend/src/PaneButtons.tsx | |||
@@ -92,7 +92,7 @@ function PaneButtons({ | |||
92 | return ( | 92 | return ( |
93 | <PaneButtonGroup | 93 | <PaneButtonGroup |
94 | size={hideLabel ? 'small' : 'medium'} | 94 | size={hideLabel ? 'small' : 'medium'} |
95 | hideLabel={hideLabel ?? PaneButtons.defaultProps.hideLabel} | 95 | hideLabel={hideLabel ?? false} |
96 | > | 96 | > |
97 | <ToggleButton | 97 | <ToggleButton |
98 | value="code" | 98 | value="code" |
@@ -140,8 +140,4 @@ function PaneButtons({ | |||
140 | ); | 140 | ); |
141 | } | 141 | } |
142 | 142 | ||
143 | PaneButtons.defaultProps = { | ||
144 | hideLabel: false, | ||
145 | }; | ||
146 | |||
147 | export default observer(PaneButtons); | 143 | export default observer(PaneButtons); |