Skip to content

Commit

Permalink
[NO JIRA] Fix button types (#3033)
Browse files Browse the repository at this point in the history
* Fix button types

* fix button import
  • Loading branch information
anambl authored Oct 9, 2023
1 parent 1caefe5 commit 15eb563
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/bpk-component-button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

import BpkButtonV2 from './src/BpkButtonV2/BpkButton';
import { BpkButtonV2 } from './src/BpkButtonV2/BpkButton';
export { BUTTON_TYPES, SIZE_TYPES } from './src/BpkButtonV2/common-types';

export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type Props = {
className?: string | null;
disabled?: boolean;
iconOnly?: boolean;
onClick?: (event: MouseEvent<any>) => void;
onClick?: (event: MouseEvent<HTMLButtonElement|HTMLAnchorElement>) => void;
rel?: string | undefined;
submit?: boolean;
href?: string | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type Props = {
className?: string | null;
disabled?: boolean;
iconOnly?: boolean;
onClick?: (event: MouseEvent<any>) => void; // TODO: We need to check this and make this more specific
onClick?: (event: MouseEvent<HTMLButtonElement|HTMLAnchorElement>) => void;
rel?: string | undefined;
submit?: boolean;
href?: string | null;
Expand Down

0 comments on commit 15eb563

Please sign in to comment.