Skip to content

Commit

Permalink
fix: PR comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
monteri committed Apr 28, 2023
1 parent 4c7eb62 commit f6d3b56
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AvatarButton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

export interface AvatarButtonProps {
alt?: string,
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'huge',
size?: 'xs' | 'sm' | 'md',
src?: string,
}
declare const AvatarButton: React.FC<AvatarButtonProps>;
Expand Down
6 changes: 5 additions & 1 deletion src/Badge/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React from 'react';
import { BadgeProps } from 'react-bootstrap/Badge';

declare const Badge: React.ForwardRefExoticComponent<BadgeProps>;
interface IBadge extends BadgeProps {
children?: React.ReactNode,
}

declare const Badge: React.ForwardRefExoticComponent<IBadge>;
export default Badge;
2 changes: 2 additions & 0 deletions src/Breadcrumb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import React from 'react';
export interface BreadcrumbProps {
links: Array<{
label: string,
href?: string,
className?: string,
}>,
activeLabel?: string,
spacer?: React.ReactElement,
Expand Down
4 changes: 3 additions & 1 deletion src/Breadcrumb/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Breadcrumb.propTypes = {
* prop as these objects will get passed down as props to the underlying component defined by `linkAs` prop.
*/
links: PropTypes.arrayOf(PropTypes.shape({
label: PropTypes.string,
label: PropTypes.string.isRequired,
href: PropTypes.string,
className: PropTypes.string,
})).isRequired,
/** allows to add a label that is not a link to the end of the breadcrumb. */
activeLabel: PropTypes.string,
Expand Down

0 comments on commit f6d3b56

Please sign in to comment.