Skip to content

Commit edaf2d3

Browse files
committed
[PR feedback] clarify comment to be a little less confusing
1 parent ed61e7a commit edaf2d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/table/mobile/responsive_context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const useIsEuiTableResponsive = (
2929

3030
const isBoolean = typeof breakpoint === 'boolean';
3131

32-
// We use ! and minBreakpoint to more accurately reflect the single point at which tables collapse
32+
// Note: we're using `!useIsWithinMinBreakpoint` here instead of `useIsWithinMaxBreakpoint`
33+
// because it more accurately reflects the single breakpoint at which tables collapse
3334
const isResponsive = !useIsWithinMinBreakpoint(isBoolean ? '' : breakpoint);
3435
return isBoolean ? breakpoint : isResponsive;
3536
};

0 commit comments

Comments
 (0)