We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce816e commit 3af5bceCopy full SHA for 3af5bce
1 file changed
src/alert/index.jsx
@@ -1,4 +1,4 @@
1
-import React from "react";
+import React from "react";
2
3
import Icon from "./icon";
4
import styles from "./styles";
@@ -13,9 +13,9 @@ const Alert = ({
13
showIcon = true
14
}) => {
15
const isDismissable = !!onDismiss;
16
- const css = `${isDismissable ? classes.dismissable : ""} ${classes[
17
- type
18
- ]} ${classes.alert}`;
+ const css = `${isDismissable ? classes.dismissable : ""} ${classes[type]} ${
+ classes.alert
+ }`;
19
const dismiss = isDismissable ? (
20
<button
21
type="button"
0 commit comments