Skip to content

Commit

Permalink
chore: refactor customStep types
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Feb 14, 2024
1 parent 4633fe2 commit e76ea14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ APIKeyModal.propTypes = {
/**
* if you need more options for key creation beyond just the name use custom steps to obtain whatever data is required.
*/
/**@ts-ignore*/
customSteps: PropTypes.arrayOf(
PropTypes.shape({
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ interface APIKeyModalCommonProps {
/**
* if you need more options for key creation beyond just the name use custom steps to obtain whatever data is required.
*/
customSteps?: Array<
| {
valid?: boolean | undefined | null;
content?: ReactNode | undefined | null;
title?: string | undefined | null;
}
| undefined
| null
>;
customSteps?: Array<{
valid?: boolean;
content?: ReactNode;
title?: string;
}>;
/**
* designates if the modal is in the edit mode
*/
Expand Down Expand Up @@ -154,15 +150,11 @@ type CustomStepConditionalProps = {
/**
* if you need more options for key creation beyond just the name use custom steps to obtain whatever data is required.
*/
customSteps?: Array<
| {
valid?: boolean | undefined | null;
content?: ReactNode | undefined | null;
title?: string | undefined | null;
}
| undefined
| null
>;
customSteps?: Array<{
valid?: boolean;
content?: ReactNode;
title?: string;
}>;
/**
* text that displays in the secondary button when using custom steps to indicate to the user that there is a previous step
*/
Expand Down

0 comments on commit e76ea14

Please sign in to comment.