Skip to content

Commit

Permalink
fix: typescript rules for ReactElement usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrad26 committed Dec 6, 2023
1 parent 8c9c766 commit 3189c5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ export default class ContentSwitcher extends React.Component<
role="tablist"
onChange={undefined}>
{children &&
React.Children.toArray(children).map((child: ReactElement, index) =>
React.cloneElement(child, {
React.Children.toArray(children).map((child, index) =>
React.cloneElement(child as ReactElement, {
index,
onClick: composeEventHandlers([
this.handleChildChange,
child.props.onClick,
(child as ReactElement).props.onClick,
]),
onKeyDown: this.handleChildChange,
selected: index === this.state.selectedIndex,
Expand Down

0 comments on commit 3189c5b

Please sign in to comment.