Skip to content

Commit

Permalink
Remove unnecessary types
Browse files Browse the repository at this point in the history
- typescript already infers this for us
  • Loading branch information
cee-chen committed Apr 29, 2024
1 parent c50ee12 commit ec15d3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/tabs/tabbed_content/tabbed_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ export class EuiTabbedContent extends Component<
// Allow the consumer to control tab selection.
const selectedTab =
externalSelectedTab ||
tabs.find(
(tab: EuiTabbedContentTab) => tab.id === this.state.selectedTabId
) ||
tabs.find((tab) => tab.id === this.state.selectedTabId) ||
tabs[0]; // Fall back to the first tab if a selected tab can't be found

const { content: selectedTabContent, id: selectedTabId } = selectedTab;
Expand All @@ -169,7 +167,7 @@ export class EuiTabbedContent extends Component<
onFocus={this.initializeFocus}
onBlur={this.removeFocus}
>
{tabs.map((tab: EuiTabbedContentTab) => {
{tabs.map((tab) => {
const {
id,
name,
Expand Down

0 comments on commit ec15d3e

Please sign in to comment.