Skip to content

Commit 4d62801

Browse files
committed
chore: update
1 parent d3c4745 commit 4d62801

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface SegmentedProps extends React.HTMLProps<HTMLDivElement> {
3737
motionName?: string;
3838
}
3939

40-
function getValidtitle(option: SegmentedLabeledOption) {
40+
function getValidTitle(option: SegmentedLabeledOption) {
4141
if (typeof option.title !== 'undefined') {
4242
return option.title;
4343
}
@@ -51,11 +51,11 @@ function getValidtitle(option: SegmentedLabeledOption) {
5151
function normalizeOptions(options: SegmentedOptions): SegmentedLabeledOption[] {
5252
return options.map((option) => {
5353
if (typeof option === 'object' && option !== null) {
54-
const validtitle = getValidtitle(option);
54+
const validTitle = getValidTitle(option);
5555

5656
return {
5757
...option,
58-
title: validtitle,
58+
title: validTitle,
5959
};
6060
}
6161

0 commit comments

Comments
 (0)