Skip to content

Commit

Permalink
fix: support React 17 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte authored Nov 27, 2020
1 parent 5cd1d5e commit 16981ab
Show file tree
Hide file tree
Showing 4 changed files with 1,354 additions and 761 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"homepage": "https://github.com/sweetalert2/sweetalert2-react-content#readme",
"dependencies": {},
"peerDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react": "^16.0.0 || ^17.0.0",
"react-dom": "^16.0.0 || ^17.0.0",
"sweetalert2": "^9.7.0 || ^10.0.0"
},
"devDependencies": {
Expand All @@ -51,14 +51,14 @@
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.3.1",
"@sweetalert2/eslint-config": "^1.0.0",
"@types/react": "^16.0.40",
"@types/react": "^17.0.0",
"babel-core": "^7.0.0-bridge.0",
"eslint": "^7.0.0",
"eslint-plugin-react": "^7.16.0",
"jest": "^26.0.0",
"npm-run-all": "^4.1.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"rollup": "^2.0.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^10.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/sweetalert2-react-content.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-use-before-define */
import { ReactElement } from 'react'
import swal, { SweetAlertIcon, SweetAlertOptions, SweetAlertResult } from 'sweetalert2'

Expand Down
2 changes: 1 addition & 1 deletion test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env jest */

/* eslint-disable no-use-before-define */
import React from 'react'
import withReactContent from '../src/index'
import {
Expand Down
Loading

0 comments on commit 16981ab

Please sign in to comment.