Skip to content

Commit

Permalink
fix: no default export
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyBeldone committed Mar 30, 2020
1 parent 2e7c778 commit 57a5c1c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["universe/node", "universe/web", "plugin:jsx-a11y/recommended"],
"extends": ["plugin:jsx-a11y/recommended"],
"plugins": ["prettier", "react", "jsx-a11y"],
"parser": "babel-eslint",
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ This hook provides four default breakpoints as **boolean** :
```javascript
/* yourComponentOrPage.js */

import useBreakpoint from 'gatsby-plugin-breakpoints';
import { useBreakpoint } from 'gatsby-plugin-breakpoints';

import MobileOnlyComponent from './your/component/path'
// ...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@babel/runtime": "^7.9.2"
},
"peerDependencies": {
"gatsby": "^2.20.9",
"gatsby": "^2.*.*",
"prop-types": "^15.7.2",
"react": "^16.13.1"
}
Expand Down
1 change: 0 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/prefer-default-export
export const defaultQueries = {
xs: '(max-width: 320px)',
sm: '(max-width: 720px)',
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { useBreakpoint } from './BreakpointProvider';

export default useBreakpoint;
export { useBreakpoint };

0 comments on commit 57a5c1c

Please sign in to comment.