Skip to content

Commit

Permalink
feat: add typings for <Button> (#3080)
Browse files Browse the repository at this point in the history
* feat: add typings for <Button>

* chore: bump @types/react and @types/react-dom

* feat: re-export bootstrap helpers as ComponentWithAsProp, BsPropsWithAs
  • Loading branch information
bradenmacdonald authored and PKulkoRaccoonGang committed Nov 26, 2024
1 parent 6e0cca5 commit 98fe4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Chip/ChipIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { STYLE_VARIANTS } from './constants';
export type ChipIconProps = {
className: string,
src: React.ComponentType,
variant: typeof STYLE_VARIANTS[keyof typeof STYLE_VARIANTS],
onClick?: KeyboardEventHandler & MouseEventHandler,
alt?: string,
variant: string,
disabled?: boolean,
} & (
// Either _both_ onClick and alt are provided, or neither is:
Expand Down
4 changes: 0 additions & 4 deletions src/Modal/_ModalDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@
.pgn__modal-header {
border-radius: 0;
}

.pgn__modal-header {
border-radius: 0;
}
}

// Made specific due to a selector in Modal.scss
Expand Down

0 comments on commit 98fe4a5

Please sign in to comment.