Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wlee221 committed Dec 2, 2022
1 parent 59dae77 commit 3f2ccc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/components/AccountSettings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
* Note that `PrimitiveProps` is used to get native html types, like `onSubmit`.
*/
type PasswordFieldPrimitiveProps = PrimitiveProps<PasswordFieldProps, 'input'>;
type ButtonPrimtiveProps = PrimitiveProps<ButtonProps, 'button'>;
type ButtonPrimitiveProps = PrimitiveProps<ButtonProps, 'button'>;
type AlertPrimitiveProps = PrimitiveProps<AlertProps, 'div'>;

/*
Expand All @@ -25,10 +25,10 @@ type CommonPasswordFieldProps = Partial<PasswordFieldPrimitiveProps> &
type CommonAlertProps = Partial<PrimitiveProps<AlertProps, 'div'>> &
Required<Pick<AlertPrimitiveProps, 'children'>>;
type CommonButtonProps<T = 'submit' | 'default'> =
Partial<ButtonPrimtiveProps> &
Partial<ButtonPrimitiveProps> &
Required<
Pick<
ButtonPrimtiveProps,
ButtonPrimitiveProps,
'isDisabled' | (T extends 'submit' ? never : 'onClick')
>
>;
Expand Down

0 comments on commit 3f2ccc6

Please sign in to comment.