Implement Windows OS Updates (feature branch). (#15359)

This commit is contained in:
Martin Angers
2023-11-29 11:07:24 -05:00
committed by GitHub
parent 0b5eedb801
commit 2f927df4f0
95 changed files with 3058 additions and 483 deletions
+13 -8
View File
@@ -9,6 +9,8 @@ const baseClass = "data-error";
interface IDataErrorProps {
/** the description text displayed under the header */
description?: string;
/** Excludes the link that asks user to create an issue. Defaults to `false` */
excludeIssueLink?: boolean;
children?: React.ReactNode;
card?: boolean;
className?: string;
@@ -18,6 +20,7 @@ const DEFAULT_DESCRIPTION = "Refresh the page or log in again.";
const DataError = ({
description = DEFAULT_DESCRIPTION,
excludeIssueLink = false,
children,
card,
className,
@@ -37,14 +40,16 @@ const DataError = ({
{children || (
<>
<span className="info__data">{description}</span>
<span className="info__data">
If this keeps happening, please&nbsp;
<CustomLink
url="https://github.com/fleetdm/fleet/issues/new/choose"
text="file an issue"
newTab
/>
</span>
{!excludeIssueLink && (
<span className="info__data">
If this keeps happening, please&nbsp;
<CustomLink
url="https://github.com/fleetdm/fleet/issues/new/choose"
text="file an issue"
newTab
/>
</span>
)}
</>
)}
</>