We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80da6b7 commit 2451c3aCopy full SHA for 2451c3a
packages/match-media/src/index.js renamed to packages/match-media/src/index.ts
@@ -4,9 +4,8 @@ import { useThemeUI } from 'theme-ui'
4
// Shared with @theme-ui/css
5
const defaultBreakpoints = [40, 52, 64].map(n => n + 'em')
6
7
-export const useBreakpointIndex = (options = {}) => {
+export const useBreakpointIndex = ({ defaultIndex = 0 }) => {
8
const context = useThemeUI()
9
- const { defaultIndex = 0 } = options
10
const breakpoints =
11
(context.theme && context.theme.breakpoints) || defaultBreakpoints
12
packages/match-media/tsconfig.json
@@ -0,0 +1,8 @@
1
+{
2
+ "compilerOptions": {
3
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "moduleResolution": "node",
+ "strict": true
+ }
+}
0 commit comments