Conversation
|
View your CI Pipeline Execution ↗ for commit a33c781
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Important
At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.
Nx Cloud is proposing a fix for your failed CI:
These changes fix the format:check task failure by applying the project's code formatting standards to the newly created and modified website components. Running nx format automatically corrected quote style inconsistencies and import formatting in copy-to-clipboard.tsx and hero-upgrade.tsx to match the project's Prettier configuration.
Tip
✅ We verified this fix by re-running nx-cloud record -- npx nx format:check.
Suggested Fix changes
diff --git a/website/src/components/copy-to-clipboard.tsx b/website/src/components/copy-to-clipboard.tsx
index 3c1ccc14..4309826d 100644
--- a/website/src/components/copy-to-clipboard.tsx
+++ b/website/src/components/copy-to-clipboard.tsx
@@ -1,5 +1,5 @@
-import copy from 'copy-to-clipboard';
-import * as React from 'react';
+import copy from "copy-to-clipboard";
+import * as React from "react";
export interface CopyToClipboardOptions {
debug?: boolean;
@@ -28,9 +28,7 @@ export const CopyToClipboard: React.FC<CopyToClipboardProps> = ({
}) => {
const onClick = React.useCallback(
(event: React.MouseEvent<HTMLElement>) => {
- const elem = React.Children.only(
- children
- ) as React.ReactElement<ChildProps>;
+ const elem = React.Children.only(children) as React.ReactElement<ChildProps>;
const result = copy(text, options);
if (onCopy) {
@@ -38,7 +36,7 @@ export const CopyToClipboard: React.FC<CopyToClipboardProps> = ({
}
// Bypass onClick if it was present
- if (elem.props.onClick && typeof elem.props.onClick === 'function') {
+ if (elem.props.onClick && typeof elem.props.onClick === "function") {
elem.props.onClick(event);
}
},
diff --git a/website/src/components/hero-upgrade.tsx b/website/src/components/hero-upgrade.tsx
index 019bfbe4..668c33ff 100644
--- a/website/src/components/hero-upgrade.tsx
+++ b/website/src/components/hero-upgrade.tsx
@@ -1,8 +1,4 @@
-import {
- ArrowDownTrayIcon,
- CogIcon,
- DocumentDuplicateIcon
-} from "@heroicons/react/24/outline";
+import { ArrowDownTrayIcon, CogIcon, DocumentDuplicateIcon } from "@heroicons/react/24/outline";
import clsx from "clsx";
import { useEffect, useState } from "react";
import { CopyToClipboard } from "./copy-to-clipboard";
Or Apply changes locally with:
npx nx-cloud apply-locally f2eb-XFs2
Apply fix locally with your editor ↗ View interactive diff ↗
🎓 Learn more about Self-Healing CI on nx.dev
No description provided.