mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Fixed Notification color
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { BackendError } from "./errors";
|
import {BackendError} from "./errors";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
import Notification from "./Notification";
|
||||||
|
|
||||||
import { translate } from "react-i18next";
|
import {translate} from "react-i18next";
|
||||||
|
|
||||||
type Props = { error: BackendError, t: string => string };
|
type Props = { error: BackendError, t: string => string };
|
||||||
type State = { collapsed: boolean };
|
type State = { collapsed: boolean };
|
||||||
@@ -19,6 +20,7 @@ class BackendErrorNotification extends React.Component<Props, State> {
|
|||||||
const icon = collapsed ? "fa-angle-right" : "fa-angle-down";
|
const icon = collapsed ? "fa-angle-right" : "fa-angle-down";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Notification type="danger">
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<p className="subtitle">
|
<p className="subtitle">
|
||||||
<span
|
<span
|
||||||
@@ -33,6 +35,7 @@ class BackendErrorNotification extends React.Component<Props, State> {
|
|||||||
</p>
|
</p>
|
||||||
{this.renderUncollapsed()}
|
{this.renderUncollapsed()}
|
||||||
</div>
|
</div>
|
||||||
|
</Notification>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user