diff --git a/apps/demo/src/migration-wizard/steps/connect/sources-table/empty-state/DiscoverySourceSetupModal.tsx b/apps/demo/src/migration-wizard/steps/connect/sources-table/empty-state/DiscoverySourceSetupModal.tsx index 3a27764..244fec0 100644 --- a/apps/demo/src/migration-wizard/steps/connect/sources-table/empty-state/DiscoverySourceSetupModal.tsx +++ b/apps/demo/src/migration-wizard/steps/connect/sources-table/empty-state/DiscoverySourceSetupModal.tsx @@ -42,15 +42,20 @@ export const sshPublicKeyValidationSchema = Yup.string().test( }, ); -export interface DiscoverySourceSetupModalProps { - isOpen?: boolean; - isDisabled?: boolean; - onClose: () => void; - onSubmit: (event: React.FormEvent) => void; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace DiscoverySourceSetupModal { + export type Props = { + isOpen?: boolean; + isDisabled?: boolean; + onClose?: ((event: KeyboardEvent | React.MouseEvent) => void) | undefined; + onSubmit: React.FormEventHandler | undefined; + }; } // Your component -export const DiscoverySourceSetupModal: React.FC = (props) => { +export const DiscoverySourceSetupModal: React.FC< + DiscoverySourceSetupModal.Props +> = (props) => { const { isOpen = false, isDisabled = false, onClose, onSubmit } = props; const [sshKey, setSshKey] = useState("");