We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ffb5f2 commit b31213dCopy full SHA for b31213d
1 file changed
index.js
@@ -1,4 +1,5 @@
1
import React from "react";
2
+import PropTypes from "prop-types";
3
import { Alert, Col } from "reactstrap";
4
5
class NotificationAlert extends React.Component {
@@ -133,7 +134,7 @@ class NotificationAlert extends React.Component {
133
134
margin: "0px auto",
135
position: "fixed",
136
transition: "all 0.5s ease-in-out",
- zIndex: "9999"
137
+ zIndex: this.props.zIndex
138
};
139
if (place.indexOf("t") !== -1) {
140
style["top"] = "20px";
@@ -191,4 +192,12 @@ class NotificationAlert extends React.Component {
191
192
}
193
194
195
+NotificationAlert.defaultProps = {
196
+ zIndex: 9999
197
+};
198
+
199
+NotificationAlert.propTypes = {
200
+ zIndex: PropTypes.number
201
+}
202
203
export default NotificationAlert;
0 commit comments