Skip to content

Commit

Permalink
Add type onCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-slobodian committed May 21, 2024
1 parent ad5dfd5 commit 1bfaebf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface ICertificateCreateByCnameData {
commonName: string;
};
algorithm: CertificateAlgorithmProps;
type: CertificateType;
}

interface CertificateCreateByCnameProps {
Expand Down Expand Up @@ -75,6 +76,7 @@ export const CertificateCreateByCname: React.FunctionComponent<
commonName: cname,
},
algorithm,
type,
})
}
title={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface ICertificateCreateByCustomData {
subject: CertificateSubjectProps;
algorithm?: CertificateAlgorithmProps;
extendedKeyUsageExtension: ICertificateKeyUsageExtensions[];
type: CertificateType;
}

interface CertificateCreateByCustomProps {
Expand Down Expand Up @@ -197,6 +198,7 @@ export const CertificateCreateByCustom: React.FunctionComponent<
disabled={isCreateButtonDisabled}
onClick={() => {
const data: ICertificateCreateByCustomData = {
type,
subject: {
commonName: cname,
emailAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface ICertificateCreateByEmailData {
commonName: string;
};
algorithm: CertificateAlgorithmProps;
type: CertificateType;
}

interface CertificateCreateByEmailProps {
Expand Down Expand Up @@ -99,6 +100,7 @@ export const CertificateCreateByEmail: React.FunctionComponent<
emailAddress,
},
algorithm,
type,
})
}
title={
Expand Down

0 comments on commit 1bfaebf

Please sign in to comment.