styled-react-modal
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -27,3 +27,3 @@ import React, { Component } from 'react' | ||
toggleModal (e) { | ||
this.setState({ isOpen: !this.state.isOpen }) | ||
this.setState((prevState) => ({ isOpen: !prevState.isOpen })) | ||
} | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "styled-react-modal", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A React modal built with styled-components.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -66,3 +66,3 @@ # Styled React Modal | ||
toggleModal (e) { | ||
this.setState({ isOpen: !this.state.isOpen }) | ||
this.setState((prevState) => ({ isOpen: !prevState.isOpen })) | ||
} | ||
@@ -192,3 +192,3 @@ | ||
toggleModal (e) { | ||
this.setState({ isOpen: !this.state.isOpen }) | ||
this.setState((prevState) => ({ isOpen: !prevState.isOpen })) | ||
} | ||
@@ -195,0 +195,0 @@ |
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
349130
21
1