mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
merge with 2.0.0-m3
This commit is contained in:
@@ -8,12 +8,17 @@ type Props = {
|
||||
body: any,
|
||||
footer?: any,
|
||||
active: boolean,
|
||||
className?: string
|
||||
className?: string,
|
||||
headColor: string
|
||||
};
|
||||
|
||||
class Modal extends React.Component<Props> {
|
||||
static defaultProps = {
|
||||
headColor: "light"
|
||||
};
|
||||
|
||||
render() {
|
||||
const { title, closeFunction, body, footer, active, className } = this.props;
|
||||
const { title, closeFunction, body, footer, active, className, headColor } = this.props;
|
||||
|
||||
const isActive = active ? "is-active" : null;
|
||||
|
||||
@@ -26,7 +31,7 @@ class Modal extends React.Component<Props> {
|
||||
<div className={classNames("modal", className, isActive)}>
|
||||
<div className="modal-background" />
|
||||
<div className="modal-card">
|
||||
<header className="modal-card-head">
|
||||
<header className={classNames("modal-card-head", `has-background-${headColor}`)}>
|
||||
<p className="modal-card-title is-marginless">{title}</p>
|
||||
<button
|
||||
className="delete"
|
||||
|
||||
Reference in New Issue
Block a user