From edaf2d3b113805165ce30be2ce5fe1981beeecda Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Wed, 27 Mar 2024 11:41:13 -0700 Subject: [PATCH] [PR feedback] clarify comment to be a little less confusing --- src/components/table/mobile/responsive_context.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/table/mobile/responsive_context.ts b/src/components/table/mobile/responsive_context.ts index b7537a8f099..305c318d373 100644 --- a/src/components/table/mobile/responsive_context.ts +++ b/src/components/table/mobile/responsive_context.ts @@ -29,7 +29,8 @@ export const useIsEuiTableResponsive = ( const isBoolean = typeof breakpoint === 'boolean'; - // We use ! and minBreakpoint to more accurately reflect the single point at which tables collapse + // Note: we're using `!useIsWithinMinBreakpoint` here instead of `useIsWithinMaxBreakpoint` + // because it more accurately reflects the single breakpoint at which tables collapse const isResponsive = !useIsWithinMinBreakpoint(isBoolean ? '' : breakpoint); return isBoolean ? breakpoint : isResponsive; };