revert accidental merge for FE lint warning fixes (#18036)
This reverts commit a3f3230aa9.
I accidentally merged to main so am reverting this change.
This commit is contained in:
@@ -39,7 +39,7 @@ const AddHostsModal = ({
|
||||
data: certificate,
|
||||
error: fetchCertificateError,
|
||||
isFetching: isFetchingCertificate,
|
||||
} = useQuery<string, string>(
|
||||
} = useQuery<string, Error>(
|
||||
["certificate"],
|
||||
() => configAPI.loadCertificate(),
|
||||
{
|
||||
|
||||
@@ -55,9 +55,9 @@ const platformSubNav: IPlatformSubNav[] = [
|
||||
interface IPlatformWrapperProps {
|
||||
enrollSecret: string;
|
||||
onCancel: () => void;
|
||||
certificate?: string;
|
||||
certificate: any;
|
||||
isFetchingCertificate: boolean;
|
||||
fetchCertificateError: string | null;
|
||||
fetchCertificateError: any;
|
||||
config: IConfig | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { FC, useContext, useEffect, useState } from "react";
|
||||
import React, { FC, ReactNode, useContext, useEffect, useState } from "react";
|
||||
import { AxiosResponse } from "axios";
|
||||
import {
|
||||
QueryClient,
|
||||
@@ -152,6 +152,7 @@ const App = ({ children, location }: IAppProps): JSX.Element => {
|
||||
setEnrollSecret(spec.secrets);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ const ClickableUrls = ({ text, className }: IClickableUrls): JSX.Element => {
|
||||
const textWithLinks = (
|
||||
<div
|
||||
className={clickableUrlClasses}
|
||||
// eslint-disable-next-line react/no-danger
|
||||
dangerouslySetInnerHTML={{ __html: sanitizedResolutionContent }}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -12,7 +12,7 @@ const meta: Meta<typeof FileUploader> = {
|
||||
accept: ".pdf",
|
||||
isLoading: false,
|
||||
onFileUpload: () => {
|
||||
console.log("File uploaded!");
|
||||
alert("File uploaded!");
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -58,14 +58,7 @@ const FlashMessage = ({
|
||||
}
|
||||
|
||||
return undefined; // No cleanup when we don't set a timeout.
|
||||
}, [
|
||||
notification,
|
||||
alertType,
|
||||
isVisible,
|
||||
setHide,
|
||||
isPersistent,
|
||||
onRemoveFlash,
|
||||
]);
|
||||
}, [notification, alertType, isVisible, setHide]);
|
||||
|
||||
if (hide || !isVisible) {
|
||||
return null;
|
||||
|
||||
@@ -198,7 +198,7 @@ const FleetAce = ({
|
||||
onLoad && onLoad(editor);
|
||||
};
|
||||
|
||||
const onBlurHandler = (event: unknown, editor?: IAceEditor): void => {
|
||||
const onBlurHandler = (event: any, editor?: IAceEditor): void => {
|
||||
onBlur && onBlur(editor);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user