mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Fix Alert's dismissible class condition
This commit is contained in:
parent
defc363f01
commit
1c986519f6
|
@ -37,7 +37,11 @@ Alert.defaultProps = {
|
||||||
|
|
||||||
export function Alert({ type, onDismiss, children }) {
|
export function Alert({ type, onDismiss, children }) {
|
||||||
return (
|
return (
|
||||||
<div className={`alert alert-dismissible alert-${type}`}>
|
<div
|
||||||
|
className={`alert ${
|
||||||
|
onDismiss ? "alert-dismissible" : ""
|
||||||
|
} alert-${type}`}
|
||||||
|
>
|
||||||
{onDismiss ? (
|
{onDismiss ? (
|
||||||
<button type="button" className="close" onClick={onDismiss}>
|
<button type="button" className="close" onClick={onDismiss}>
|
||||||
×
|
×
|
||||||
|
|
Loading…
Reference in New Issue
Block a user