Frontend: New CustomLink component (#8375)

This commit is contained in:
RachelElysia
2022-10-27 14:06:57 -04:00
committed by GitHub
parent ef1be16a68
commit 82ff4ab6e3
41 changed files with 349 additions and 387 deletions
+6 -9
View File
@@ -1,6 +1,6 @@
import React from "react";
import ExternalLinkIcon from "../../../assets/images/icon-external-link-12x12@2x.png";
import CustomLink from "components/CustomLink";
import ErrorIcon from "../../../assets/images/icon-error-16x16@2x.png";
const baseClass = "data-error";
@@ -21,14 +21,11 @@ const DataError = ({ card }: IDataErrorProps): JSX.Element => {
<span className="info__data">Refresh the page or log in again.</span>
<span className="info__data">
If this keeps happening, please&nbsp;
<a
href="https://github.com/fleetdm/fleet/issues/new/choose"
target="_blank"
rel="noopener noreferrer"
>
file an issue
<img src={ExternalLinkIcon} alt="Open external link" />
</a>
<CustomLink
url="https://github.com/fleetdm/fleet/issues/new/choose"
text="file an issue"
newTab
/>
</span>
</div>
</div>