Skip to content

Commit

Permalink
fix: remove Segmented.defaultProps (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Sep 26, 2023
1 parent 5c62a37 commit 1703b9b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
const {
prefixCls = 'rc-segmented',
direction,
options,
options = [],
disabled,
defaultValue,
value,
Expand Down Expand Up @@ -221,8 +221,4 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(

Segmented.displayName = 'Segmented';

Segmented.defaultProps = {
options: [],
};

export default Segmented;

0 comments on commit 1703b9b

Please sign in to comment.