-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AXON-72: clean up for readability + use constant values
- Loading branch information
1 parent
60b4c4f
commit 165e727
Showing
4 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...de/onboarding/JiraBitbucketOnboarding.tsx → ...ascode/common/JiraBitbucketOnboarding.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
import { JiraBitbucketOnboarding } from '../common/JiraBitbucketOnboarding'; | ||
import { Product } from '../common/types'; | ||
|
||
type Props = { | ||
handleOptionChange: (value: string) => void; | ||
executeSetup: () => void; | ||
signInText: string; | ||
valueSet: { | ||
cloud: string; | ||
server: string; | ||
none: string; | ||
}; | ||
handleBack?: () => void; | ||
}; | ||
|
||
export const BitbucketOnboarding: React.FC<Props> = ({ | ||
handleOptionChange, | ||
executeSetup, | ||
signInText, | ||
valueSet, | ||
handleBack, | ||
}) => { | ||
const product: Product = 'Bitbucket'; | ||
return ( | ||
<JiraBitbucketOnboarding | ||
product={product} | ||
handleOptionChange={handleOptionChange} | ||
executeSetup={executeSetup} | ||
signInText={signInText} | ||
valueSet={valueSet} | ||
handleBack={handleBack} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { JiraBitbucketOnboarding } from '../common/JiraBitbucketOnboarding'; | ||
import { Product } from '../common/types'; | ||
|
||
type Props = { | ||
handleOptionChange: (value: string) => void; | ||
executeSetup: () => void; | ||
signInText: string; | ||
valueSet: { | ||
cloud: string; | ||
server: string; | ||
none: string; | ||
}; | ||
}; | ||
|
||
export const JiraOnboarding: React.FC<Props> = ({ handleOptionChange, executeSetup, signInText, valueSet }) => { | ||
const product: Product = 'Jira'; | ||
return ( | ||
<JiraBitbucketOnboarding | ||
product={product} | ||
handleOptionChange={handleOptionChange} | ||
executeSetup={executeSetup} | ||
signInText={signInText} | ||
valueSet={valueSet} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters