V2Wizard: Implement <Aws> subset of Image Output step
DDF has been dropped, RTK being used for state management now.
This commit is contained in:
parent
e5c55828e3
commit
091c34431e
8 changed files with 430 additions and 106 deletions
10
src/Components/CreateImageWizardV2/validators.ts
Normal file
10
src/Components/CreateImageWizardV2/validators.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export const isAwsAccountIdValid = (awsAccountId: string | undefined) => {
|
||||
if (
|
||||
awsAccountId !== undefined &&
|
||||
/^\d+$/.test(awsAccountId) &&
|
||||
awsAccountId.length === 12
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue