|
@@ -64,6 +64,7 @@ type Props = {
|
|
|
onSuccess: () => void;
|
|
onSuccess: () => void;
|
|
|
project: { id: number; name: string };
|
|
project: { id: number; name: string };
|
|
|
currentStep: "credentials" | "settings" | "test_connection";
|
|
currentStep: "credentials" | "settings" | "test_connection";
|
|
|
|
|
+ goBack: () => void;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const FormFlowWrapper: React.FC<Props> = ({
|
|
const FormFlowWrapper: React.FC<Props> = ({
|
|
@@ -73,6 +74,7 @@ const FormFlowWrapper: React.FC<Props> = ({
|
|
|
provider,
|
|
provider,
|
|
|
project,
|
|
project,
|
|
|
currentStep,
|
|
currentStep,
|
|
|
|
|
+ goBack,
|
|
|
}) => {
|
|
}) => {
|
|
|
const nextFormStep = (
|
|
const nextFormStep = (
|
|
|
data?: Partial<Exclude<ConnectedRegistryConfig, SkipRegistryConnection>>
|
|
data?: Partial<Exclude<ConnectedRegistryConfig, SkipRegistryConnection>>
|
|
@@ -106,13 +108,13 @@ const FormFlowWrapper: React.FC<Props> = ({
|
|
|
return (
|
|
return (
|
|
|
<FormWrapper>
|
|
<FormWrapper>
|
|
|
<FormHeader>
|
|
<FormHeader>
|
|
|
- <CloseButton onClick={() => alert("go back")}>
|
|
|
|
|
|
|
+ <CloseButton onClick={() => goBack()}>
|
|
|
<i className="material-icons">keyboard_backspace</i>
|
|
<i className="material-icons">keyboard_backspace</i>
|
|
|
</CloseButton>
|
|
</CloseButton>
|
|
|
<img src={FormTitle[provider].icon} />
|
|
<img src={FormTitle[provider].icon} />
|
|
|
{FormTitle[provider].label}
|
|
{FormTitle[provider].label}
|
|
|
</FormHeader>
|
|
</FormHeader>
|
|
|
- <Breadcrumb
|
|
|
|
|
|
|
+ <Breadcrumb
|
|
|
currentStep={currentStep}
|
|
currentStep={currentStep}
|
|
|
steps={[
|
|
steps={[
|
|
|
{ value: "credentials", label: "Credentials" },
|
|
{ value: "credentials", label: "Credentials" },
|