X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ee68b6a5e88e383dbc2126124eef0f8c6ba37d2d..8378a7a9d6ffef1626ed8516150ce0807635a5fa:/src/components/warning/warning.tsx?ds=sidebyside diff --git a/src/components/warning/warning.tsx b/src/components/warning/warning.tsx index 1a8f4456..7299c174 100644 --- a/src/components/warning/warning.tsx +++ b/src/components/warning/warning.tsx @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; -import { WarningIcon } from "~/components/icon/icon"; +import { ErrorIcon } from "~/components/icon/icon"; import { Tooltip } from "@material-ui/core"; interface WarningComponentProps { @@ -15,8 +15,8 @@ interface WarningComponentProps { export const WarningComponent = ({ text, rules, message }: WarningComponentProps) => rules.find(aRule => text.match(aRule) !== null) ? message - ? - : + ? + : : null; interface IllegalNamingWarningProps {