Skip to content

Fix TS2339: replace Tab.Pane with TabPane in profile components - #71

Merged
KNPhilip merged 2 commits into
mainfrom
copilot/fix-tab-pane-usage
Feb 27, 2026
Merged

KNPhilip merged 2 commits into
mainfrom
copilot/fix-tab-pane-usage

Conversation

Copilot AI commented Feb 27, 2026 •

Copy link
Copy Markdown
Contributor

Tab in semantic-ui-react does not expose a Pane sub-component, causing TS2339: Property 'Pane' does not exist build failures across four profile components. The fix uses the separately exported TabPane component instead.

Changes

  • Imports — Added TabPane to the semantic-ui-react import in each affected file
  • JSX — Replaced <Tab.Pane> with <TabPane> in:
    • ProfileAbout.tsx
    • ProfileActivities.tsx
    • ProfileFollowings.tsx
    • ProfilePhotos.tsx
// Before
import { Tab } from "semantic-ui-react";
// ...
<Tab.Pane loading={loading}>...</Tab.Pane>

// After
import { Tab, TabPane } from "semantic-ui-react";
// ...
<TabPane loading={loading}>...</TabPane>
Original prompt

The build fails in several profile components due to incorrect usage of Tab.Pane. The semantic-ui-react Tab component does not have a Pane property. Instead, use the separately exported TabPane component.

Steps to fix for each affected file:

  1. Update imports: Add TabPane to the semantic-ui-react import.
  2. Replace all occurences of <Tab.Pane ...>...</Tab.Pane> with <TabPane ...>....

Affected files/lines (based on CI failure):

  • src/features/profile/ProfileAbout.tsx (lines 13, 38)
  • src/features/profile/ProfileActivities.tsx (lines 32, 67)
  • src/features/profile/ProfileFollowings.tsx (lines 11, 31)
  • src/features/profile/ProfilePhotos.tsx (lines 33, 81)

This will resolve TS2339: Property 'Pane' does not exist on type 'ForwardRefComponent<TabProps, HTMLDivElement>'.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: KNPhilip <107537536+KNPhilip@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect usage of Tab.Pane in profile components Fix TS2339: replace Tab.Pane with TabPane in profile components Feb 27, 2026
@KNPhilip
KNPhilip marked this pull request as ready for review February 27, 2026 23:01
@KNPhilip

Copy link
Copy Markdown
Owner

@copilot you have a failing pipeline. Please adjust accordingly.

@KNPhilip
KNPhilip merged commit 3ffb153 into main Feb 27, 2026
8 of 10 checks passed
@KNPhilip
KNPhilip deleted the copilot/fix-tab-pane-usage branch February 27, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants