Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: No active position shown when loading lp positions (#11083)
If user only has the positions in either of them (v3,v2,stable), no active position for a period of time shown if the type where there is no position loaded first <!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the loading state management in the `PositionPage` component by checking loading flags before rendering the empty state and modifies how loading indicators are displayed. ### Detailed summary - Updated the condition to check for loading states (`v3Loading`, `v2Loading`, `stableLoading`) before rendering the empty state. - Introduced a loading skeleton (`<PositionItemSkeleton />`) and a loading text indicator when any of the position lists are loading. - Stored the reduced elements in a constant `elements` for better readability. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information