Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
react@16 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiepdev committed Sep 27, 2017
1 parent e7dba6d commit fc5e37b
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 103 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,5 @@ export default combineReducers({
## Contributing
The main package in `src/package`

## Testing
Welcome contributing :)

## License
MIT © [Nghiệp](http://nghiepit.pro)
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-modal-flex",
"version": "0.1.10",
"version": "1.0.0",
"description":
"Accessible modal dialog component for React Redux, Easy to install and use with Redux",
"keywords": [
Expand All @@ -20,8 +20,8 @@
"classnames": "^2.2.5",
"prop-types": "^15.5.10",
"ramda": "^0.24.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^5.0.5",
"react-router-dom": "^4.1.2",
"redux": "^3.7.2",
Expand Down Expand Up @@ -69,9 +69,9 @@
"whatwg-fetch": "2.0.3"
},
"peerDependencies": {
"prop-types": "^15.0.0",
"react": "^15.0.0",
"react-dom": "^15.0.0",
"prop-types": "^15.0.0 || ^16.0.0",
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0",
"redux": "^3.0.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/package/components/Content/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Wrapper = styled.section`
display: flex;
justify-content: center;
align-items: center;
background: ${props => (props.mask ? 'rgba(0, 0, 0, 0.5)' : 'transparent')};
background: ${props => (props.isMask ? 'rgba(0, 0, 0, 0.5)' : 'transparent')};
animation-duration: 0.2s;
& > div.animated {
display: flex;
Expand Down Expand Up @@ -56,7 +56,7 @@ class Content extends React.Component {
<Wrapper
className="animated fadeIn modal-overlay"
onClick={this.onClick}
mask={mask}
isMask={mask}
duration={duration}
>
<div className={className}>
Expand Down
Loading

0 comments on commit fc5e37b

Please sign in to comment.