Skip to content

Commit

Permalink
[PR feedback] clarify comment to be a little less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Mar 27, 2024
1 parent ed61e7a commit edaf2d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/table/mobile/responsive_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit edaf2d3

Please sign in to comment.