mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-20 08:16:38 +02: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…
x
Reference in New Issue
Block a user