Skip to content

Commit

Permalink
fix: breadcrumb node prop type id
Browse files Browse the repository at this point in the history
  • Loading branch information
chaofan232 committed Aug 24, 2023
1 parent e395e5a commit 85a4528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumb/Node/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

export interface BreadcrumbNodeNode {
id: string;
id: string | number;
label: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumb/Node/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const BreadcrumbNode = ({ isLast, node, onClick }) => {
BreadcrumbNode.propTypes = {
isLast: PropTypes.bool.isRequired,
node: PropTypes.shape({
id: PropTypes.string.isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
label: PropTypes.string.isRequired,
}),
onClick: PropTypes.func.isRequired,
Expand Down

0 comments on commit 85a4528

Please sign in to comment.