+
diff --git a/src/bootstrap/Alert.css b/src/bootstrap/Alert.css
deleted file mode 100644
index 520d6fb..0000000
--- a/src/bootstrap/Alert.css
+++ /dev/null
@@ -1,17 +0,0 @@
-.floating-alert {
- /* Display alert above other components */
- z-index: 2000;
-}
-
-@media(max-width: 768px) {
- .floating-alert {
- margin: 0.5rem;
- }
-}
-
-@media(min-width: 769px) {
- .floating-alert {
- width: 75%;
- margin: 0.5rem auto;
- }
-}
diff --git a/src/bootstrap/Alert.js b/src/bootstrap/Alert.js
index a63a6f7..5671f89 100644
--- a/src/bootstrap/Alert.js
+++ b/src/bootstrap/Alert.js
@@ -8,8 +8,6 @@
import React from "react";
import PropTypes from "prop-types";
-import "./Alert.css";
-
export const ALERT_TYPES = Object.freeze({
PRIMARY: "primary",
SECONDARY: "secondary",
@@ -31,20 +29,17 @@ Alert.propTypes = {
]),
/** onDismiss handler. */
onDismiss: PropTypes.func,
- /** Floating alerts stay on top of the page */
- floating: PropTypes.bool,
};
Alert.defaultProps = {
type: ALERT_TYPES.DANGER,
- floating: false,
};
export function Alert({
- type, onDismiss, floating, children,
+ type, onDismiss, children,
}) {
return (
-
+
{onDismiss ? : false}
{children}