@@ -24,6 +24,7 @@ import {
2424 RadioItem ,
2525 Select ,
2626} from '@deephaven/components' ;
27+ import { EMPTY_FUNCTION } from '@deephaven/utils' ;
2728import {
2829 SAMPLE_SECTION_E2E_IGNORE ,
2930 SPECTRUM_COMPARISON_SAMPLES_ID ,
@@ -44,10 +45,6 @@ const options = [
4445 { title : 'Three' , value : '3' } ,
4546] ;
4647
47- function noop ( ) : void {
48- // no-op
49- }
50-
5148export function SpectrumComparison ( ) : JSX . Element {
5249 const [ isChecked , setIsChecked ] = useState ( false ) ;
5350 const [ radioValue , setRadioValue ] = useState ( '1' ) ;
@@ -77,7 +74,7 @@ export function SpectrumComparison(): JSX.Element {
7774
7875 { buttons . map ( ( [ level , variant ] ) => (
7976 < Fragment key = { level } >
80- < BootstrapButtonOld onClick = { noop } kind = { level } >
77+ < BootstrapButtonOld onClick = { EMPTY_FUNCTION } kind = { level } >
8178 Button
8279 </ BootstrapButtonOld >
8380
@@ -87,7 +84,11 @@ export function SpectrumComparison(): JSX.Element {
8784 </ Fragment >
8885 ) ) }
8986
90- < BootstrapButtonOld onClick = { noop } kind = "primary" disabled >
87+ < BootstrapButtonOld
88+ onClick = { EMPTY_FUNCTION }
89+ kind = "primary"
90+ disabled
91+ >
9192 Disabled
9293 </ BootstrapButtonOld >
9394 < Button variant = "accent" style = "fill" isDisabled >
@@ -104,7 +105,7 @@ export function SpectrumComparison(): JSX.Element {
104105
105106 { buttons . map ( ( [ level , variant ] ) => (
106107 < Fragment key = { level } >
107- < BootstrapButtonOld onClick = { noop } kind = { level } >
108+ < BootstrapButtonOld onClick = { EMPTY_FUNCTION } kind = { level } >
108109 { level }
109110 </ BootstrapButtonOld >
110111 < Button variant = { variant } style = "outline" >
@@ -113,7 +114,11 @@ export function SpectrumComparison(): JSX.Element {
113114 </ Fragment >
114115 ) ) }
115116
116- < BootstrapButtonOld onClick = { noop } kind = "secondary" disabled >
117+ < BootstrapButtonOld
118+ onClick = { EMPTY_FUNCTION }
119+ kind = "secondary"
120+ disabled
121+ >
117122 Disabled
118123 </ BootstrapButtonOld >
119124 < Button variant = "primary" style = "outline" isDisabled >
@@ -129,12 +134,12 @@ export function SpectrumComparison(): JSX.Element {
129134 < label > Bootstrap</ label >
130135 < label > Spectrum</ label >
131136
132- < BootstrapButtonOld onClick = { noop } kind = "inline" >
137+ < BootstrapButtonOld onClick = { EMPTY_FUNCTION } kind = "inline" >
133138 Inline
134139 </ BootstrapButtonOld >
135140 < ActionButton > Action</ ActionButton >
136141
137- < BootstrapButtonOld onClick = { noop } kind = "inline" disabled >
142+ < BootstrapButtonOld onClick = { EMPTY_FUNCTION } kind = "inline" disabled >
138143 Disabled
139144 </ BootstrapButtonOld >
140145 < ActionButton isDisabled > Disabled</ ActionButton >
0 commit comments