Skip to content

Commit

Permalink
feat: replace create-react-context with the native React Context API
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoyadmoon committed Jun 13, 2023
1 parent 58ac7b7 commit 39b825c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
},
"dependencies": {
"classnames": "^2.2.5",
"create-react-context": "^0.2.3",
"document-offset": "^1.0.4",
"keycode": "^2.1.9",
"lodash.omit": "^4.5.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/core/src/contexts/listSpacing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// #FIXME: use React navive context API when upgraded to v16+
import createReactContext from 'create-react-context';
import React from 'react';

const ListSpacingContext = createReactContext(true);
const ListSpacingContext = React.createContext(true);

export default ListSpacingContext;
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5656,7 +5656,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

create-react-context@^0.2.1, create-react-context@^0.2.3:
create-react-context@^0.2.1:
version "0.2.3"
resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.3.tgz#9ec140a6914a22ef04b8b09b7771de89567cb6f3"
integrity sha512-CQBmD0+QGgTaxDL3OX1IDXYqjkp2It4RIbcb99jS6AEg27Ga+a9G3JtK6SIu0HBwPLZlmwt9F7UwWA4Bn92Rag==
Expand Down

0 comments on commit 39b825c

Please sign in to comment.