diff --git a/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/adding-of-custom-helm-repository-dialog-content.tsx b/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/adding-of-custom-helm-repository-dialog-content.tsx index f0595bbbc7..1167beae0a 100644 --- a/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/adding-of-custom-helm-repository-dialog-content.tsx +++ b/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/adding-of-custom-helm-repository-dialog-content.tsx @@ -32,7 +32,12 @@ interface Dependencies { maximalOptionsAreShown: IObservableValue; } -const NonInjectedActivationOfCustomHelmRepositoryDialogContent = observer(({ helmRepo, submitCustomRepository, maximalOptionsAreShown, hideDialog } : Dependencies) => ( +const NonInjectedActivationOfCustomHelmRepositoryDialogContent = observer(({ + helmRepo, + submitCustomRepository, + maximalOptionsAreShown, + hideDialog, +} : Dependencies) => ( Add custom Helm Repo} done={hideDialog}> ( - NonInjectedActivationOfCustomHelmRepositoryDialogContent, - - { - getProps: (di) => ({ - helmRepo: di.inject(customHelmRepoInjectable), - hideDialog: di.inject(hideDialogForAddingCustomHelmRepositoryInjectable), - submitCustomRepository: di.inject(submitCustomHelmRepositoryInjectable), - maximalOptionsAreShown: di.inject(maximalCustomHelmRepoOptionsAreShownInjectable), - }), - }, -); +export const AddingOfCustomHelmRepositoryDialogContent = withInjectables(NonInjectedActivationOfCustomHelmRepositoryDialogContent, { + getProps: (di) => ({ + helmRepo: di.inject(customHelmRepoInjectable), + hideDialog: di.inject(hideDialogForAddingCustomHelmRepositoryInjectable), + submitCustomRepository: di.inject(submitCustomHelmRepositoryInjectable), + maximalOptionsAreShown: di.inject(maximalCustomHelmRepoOptionsAreShownInjectable), + }), +}); const keyExtensions = ["key", "keystore", "jks", "p12", "pfx", "pem"]; const certExtensions = ["crt", "cer", "ca-bundle", "p7b", "p7c", "p7s", "p12", "pfx", "pem"];