Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit c7fc08c

Browse files
committed
fix(theme): change _breakpoints to object without array
1 parent a62d60e commit c7fc08c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/chakra-ui-theme/src/theme/breakpoints.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
* @description These breakpoint styles were adapted from [@chakra-ui](https://chakra-ui.com/)
33
*/
44

5-
const _breakpoints = ['30em', '48em', '62em', '80em']
6-
7-
_breakpoints.sm = _breakpoints[0]
8-
_breakpoints.md = _breakpoints[1]
9-
_breakpoints.lg = _breakpoints[2]
10-
_breakpoints.xl = _breakpoints[3]
5+
const _breakpoints = {
6+
sm: '30em',
7+
md: '48em',
8+
lg: '62em',
9+
xl: '80em',
10+
'2xl': '96em'
11+
}
1112

1213
export const createBreakpoints = (
1314
config = {}

0 commit comments

Comments
 (0)