Skip to content

Commit bed5b58

Browse files
committed
fix: address review feedback
1 parent 771799e commit bed5b58

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/react-component-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ permissions:
55
jobs:
66
test:
77
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
8-
secrets: inherit
8+
secrets:
9+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Online preview: https://segmented.react-component.vercel.app/
6363
| `motionName` | string | `'thumb-motion'` | Motion class name for the active thumb. |
6464
| `name` | string | - | Radio group name. |
6565
| `onChange` | `(value: string \| number) => void` | - | Triggered when the selected value changes. |
66-
| `options` | Array<string \| number \| SegmentedLabeledOption> | [] | Available options. |
66+
| `options` | Array<string \| number \| SegmentedLabeledOption> | - | Available options. Required. |
6767
| `prefixCls` | string | `'rc-segmented'` | Prefix class name. |
6868
| `style` | React.CSSProperties | - | Root style. |
6969
| `styles` | Partial<Record<'item' \| 'label', React.CSSProperties>> | - | Semantic styles for internal slots. |

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"paths": {
1717
"@/*": ["src/*"],
1818
"@@/*": [".dumi/tmp/*"],
19-
"@rc-component/segmented": ["src/index.tsx"]
19+
"@rc-component/segmented": ["src/index.tsx"],
20+
"@rc-component/segmented/es": ["src"],
21+
"@rc-component/segmented/es/*": ["src/*"],
22+
"@rc-component/segmented/assets/*": ["assets/*"]
2023
}
2124
},
2225
"include": [".dumirc.ts", "src", "tests", "docs/demo"],

0 commit comments

Comments
 (0)