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