Skip to content

Commit 745f6f5

Browse files
committed
fix(toggle-button-native): fix typing issue
1 parent fa68213 commit 745f6f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/pluggableWidgets/toggle-buttons-native/src/ToggleButtons.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export class ToggleButtons extends Component<Props> {
3030
selectedIndex={selectedIndex}
3131
enabled={enabled}
3232
onTabPress={this.onChangeHandler}
33-
{...(typeof this.styles.container.borderRadius === "number" && {
34-
borderRadius: this.styles.container.borderRadius
35-
})}
33+
borderRadius={Number(this.styles.container.borderRadius)}
3634
tabStyle={this.styles.button}
3735
tabTextStyle={this.styles.text}
3836
activeTabStyle={this.styles.activeButton}

0 commit comments

Comments
 (0)