Skip to content

Commit 44d7a2f

Browse files
committed
fix: add xxxl breakpoint from antd v6
antd v6.4.x added a new xxxl breakpoint to Grid.useBreakpoint(), which caused the useResponsive snapshot test to fail. Update the Breakpoint type and inline snapshot to include the new key.
1 parent dabffea commit 44d7a2f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/types/response.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { SerializedStyles } from './css';
22

33
export type Breakpoint =
4+
| 'xxxl'
45
| 'xxl'
56
| 'xl'
67
| 'lg'

tests/hooks/useResponsive.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('useResponsive', () => {
1616
"xl": false,
1717
"xs": false,
1818
"xxl": false,
19+
"xxxl": false,
1920
}
2021
`);
2122
});

0 commit comments

Comments
 (0)