From a00ae6ad23e24480f6b6868fd11dfe514b73141c Mon Sep 17 00:00:00 2001 From: vakarisz Date: Mon, 25 Jul 2022 17:29:23 +0300 Subject: [PATCH] UI: Fix typescript errors --- .../components/configuration-components/CredentialsConfig.tsx | 1 + .../components/configuration-components/ExportConfigModal.tsx | 2 +- .../components/configuration-components/PropagationConfig.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/CredentialsConfig.tsx b/monkey/monkey_island/cc/ui/src/components/configuration-components/CredentialsConfig.tsx index 4e40f980b..35e90c49b 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/CredentialsConfig.tsx +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/CredentialsConfig.tsx @@ -18,6 +18,7 @@ export default function CredentialsConfig(props) { uiSchema={uiSchema} formData={credentialsCopy} onChange={(formData) => {onChange(formData.formData)}} + // @ts-ignore customFormats={customFormats} className={className} liveValidate diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx b/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx index c56ccb4f1..7c5506e5e 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx @@ -10,7 +10,7 @@ import {reformatConfig} from './ReformatHook'; type Props = { show: boolean, configuration: object, - credentials: object, + credentials: string, onHide: () => void } diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/PropagationConfig.tsx b/monkey/monkey_island/cc/ui/src/components/configuration-components/PropagationConfig.tsx index 3527bb3e8..3be4dc548 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/PropagationConfig.tsx +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/PropagationConfig.tsx @@ -65,6 +65,7 @@ export default function PropagationConfig(props) { uiSchema={displayedUiSchema} formData={selectedSectionData} onChange={onFormDataChange} + // @ts-ignore customFormats={customFormats} className={className} // Each form must be a unique component