Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- 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 focuses on refactoring and exporting components, updating page routes, and adding utility functions for better code organization. ### Detailed summary - Refactored and exported components in various directories - Updated page routes for better navigation - Added utility functions for improved code functionality > The following files were skipped due to too many changes: `apps/web/src/views/universalFarms/components/PositionItem/PositionItemSkeleton.tsx`, `packages/uikit/src/components/ButtonMenu/types.ts`, `packages/uikit/src/components/Image/index.ts`, `apps/web/src/views/universalFarms/components/PositionItem/styled.ts`, `packages/widgets-internal/index.ts`, `packages/uikit/src/components/Select/index.stories.tsx`, `packages/uikit/src/components/Card/theme.ts`, `packages/farms/index.test.ts`, `apps/web/src/state/info/types.ts`, `apps/web/src/state/farmsV4/state/poolApr/utils.ts`, `apps/aptos/components/Menu/hooks/useMenuItems.ts`, `apps/web/src/views/Home/components/EcoSystemSection/index.tsx`, `apps/web/src/views/universalFarms/components/StopPropagation.tsx`, `apps/web/src/hooks/useTokenAllowance.ts`, `apps/web/src/views/universalFarms/utils/index.ts`, `packages/uikit/src/components/ButtonMenu/ButtonMenu.tsx`, `packages/tokens/src/helpers/getTokensByChain.ts`, `apps/web/src/views/Swap/hooks/useStableConfig.ts`, `apps/web/src/hooks/v3/useV3Positions.ts`, `apps/web/src/views/Farms/styled.tsx`, `apps/web/src/views/universalFarms/hooks/useBCakeWrapperAddress.tsx`, `apps/web/src/views/universalFarms/hooks/useMasterChefV3FarmBoosterAddress.ts`, `apps/web/src/views/PoolDetail/components/ChartLiquidity/ChartLiquidity.tsx`, `apps/web/src/utils/batcher.ts`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountV3Position.ts`, `packages/widgets-internal/components/PoolTypeMenu/PoolTypeMenu.tsx`, `apps/web/src/components/Menu/config/config.ts`, `apps/web/src/views/universalFarms/hooks/useCheckShouldSwitchNetwork.ts`, `packages/widgets-internal/farm/components/PoolsTypeFilter/PoolsTypeFilter.tsx`, `apps/web/src/views/PoolDetail/components/Transactions/type.ts`, `apps/web/src/state/user/hooks/useUserAddedTokens.ts`, `apps/web/src/views/AddLiquidityV3/formViews/V3FormView/components/PoolListItem.tsx`, `packages/uikit/src/components/Image/types.ts`, `packages/widgets-internal/farm/components/FarmApyButton/index.tsx`, `apps/web/src/views/AddLiquidity/ChoosePair.tsx`, `apps/web/src/hooks/v3/utils/getPriceOrderingFromPositionForUI.ts`, `packages/uikit/src/widgets/Modal/BottomDrawer/BottomDrawer.tsx`, `apps/web/src/views/Farms/hooks/useMasterChefV2Data.ts`, `packages/farms/src/const.ts`, `apps/web/src/views/PoolDetail/components/ChartLiquidity/styled.ts`, `apps/web/src/views/Farms/hooks/useV2LpTokenTotalSupply.ts`, `apps/web/src/views/universalFarms/hooks/useMultiChains.ts`, `packages/farms/src/types.ts`, `packages/uikit/src/components/Svg/index.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountV2PendingCakeReward.ts`, `packages/hooks/src/useIntersectionObserver.ts`, `apps/web/src/hooks/useContract.ts`, `packages/farms/src/index.ts`, `apps/web/src/views/PoolDetail/hooks/usePoolSymbol.ts`, `apps/web/src/state/lists/hooks.ts`, `apps/web/src/views/universalFarms/hooks/useBCakeWrapperInfo.ts`, `apps/web/src/pages/stable/[address].tsx`, `apps/web/src/views/universalFarms/hooks/useTotalPriceUSD.ts`, `apps/web/src/state/farmsV4/state/accountPositions/atom.ts`, `apps/web/src/state/lists/updater.ts`, `packages/widgets-internal/roi/RoiCalculator.tsx`, `apps/web/src/views/PoolDetail/components/Transactions/Transactions.tsx`, `packages/smart-router/legacy-router/getStableSwapPairs.ts`, `packages/farms/src/farms/index.ts`, `packages/uikit/src/components/Tag/theme.ts`, `packages/v2-sdk/src/entities/pair.ts`, `apps/web/src/views/PoolDetail/components/MyPositionsContext.tsx`, `packages/uikit/src/components/Image/TokenPairLogo.tsx`, `packages/uikit/src/components/Svg/Icons/SortDESCIcon.tsx`, `apps/web/src/views/universalFarms/components/PositionActions/V3UnstakeModalContent.tsx`, `packages/widgets-internal/farm/components/DepositModal/index.tsx`, `apps/web/src/config/constants/meta.ts`, `apps/web/src/state/farmsV4/state/type.ts`, `apps/web/src/views/Info/components/InfoCharts/LineChart/index.tsx`, `apps/web/src/views/PoolDetail/hooks/useV3Positions.ts`, `packages/uikit/src/components/Image/TokenPairImage.tsx`, `apps/web/src/views/PoolDetail/hooks/useStablePoolFee.ts`, `packages/farms/src/farms/opBNBTestnet.ts`, `packages/uikit/src/components/MultiSelect/types.tsx`, `packages/farms/src/farms/zkSyncTestnet.ts`, `apps/web/src/state/farmsV4/state/accountPositions/fetcher/v3/getAccountV3FarmingPendingCakeReward.ts`, `apps/web/src/views/PoolDetail/components/ChartFee.tsx`, `apps/web/src/views/universalFarms/components/StyledCard.tsx`, `packages/farms/src/farms/opBNB.ts`, `apps/web/src/views/PoolDetail/components/ChartTVL.tsx`, `apps/web/src/views/Farms/hooks/useLmPoolLiquidity.ts`, `packages/farms/src/farms/polygonZkEVMTestnet.ts`, `apps/web/src/views/Farms/FarmsV3.tsx`, `packages/uikit/src/components/MultiSelect/index.stories.tsx`, `apps/web/src/views/PoolDetail/hooks/usePoolChartFeeData.ts`, `apps/web/src/views/Farms/hooks/v3/useFarmV3Actions.tsx`, `apps/web/src/views/PoolDetail/components/BreadcrumbNav.tsx`, `apps/web/src/views/universalFarms/components/PoolsBanner.tsx`, `apps/web/src/views/PoolDetail/components/ChartVolume.tsx`, `apps/web/src/state/farmsV4/state/extendPools/atom.ts`, `apps/web/src/components/RangeTag.tsx`, `apps/web/src/state/farmsV3/hooks.ts`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountV3Positions.ts`, `apps/web/src/state/info/hooks.ts`, `apps/web/src/views/universalFarms/components/PoolAprButton/PoolGlobalAprButton.tsx`, `apps/web/src/views/Pools/components/RevenueSharing/BenefitsModal/LockedBenefits.tsx`, `apps/web/src/views/V3Info/hooks/index.ts`, `apps/web/src/views/PoolDetail/hooks/usePoolChartVolumeData.ts`, `apps/web/src/views/PoolDetail/hooks/usePoolChartTVLData.ts`, `apps/web/src/views/PoolDetail/components/PoolEarnings.tsx`, `apps/web/src/state/farmsV4/state/extendPools/fetcher.ts`, `apps/web/src/views/universalFarms/hooks/useV2FarmActions.ts`, `packages/widgets-internal/components/CurrencyLogo/DoubleCurrencyLogo.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/fetcher/v3/getAccountV3TokenIds.ts`, `apps/web/src/pages/liquidity/[tokenId].tsx`, `apps/web/src/hooks/useActiveWeb3React.ts`, `apps/web/src/views/V3Info/components/BarChart/alt.tsx`, `apps/web/src/config/constants/lists.ts`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountStableLpDetails.ts`, `apps/web/src/views/PoolDetail/components/PoolTokens.tsx`, `apps/web/src/pages/api/configs/farms/index.ts`, `apps/web/src/views/PoolDetail/components/ChartLiquidity/CurrentPriceLabel.tsx`, `packages/widgets-internal/components/NumberDisplay/TokenNumberDisplay.tsx`, `apps/web/src/views/FarmAuction/index.tsx`, `packages/widgets-internal/components/NumberDisplay/index.tsx`, `apps/web/src/views/PoolDetail/components/ChangePercent.tsx`, `packages/widgets-internal/components/TokenOverview/TokenOverview.tsx`, `packages/utils/formatFiatNumber.ts`, `apps/web/src/views/universalFarms/components/PositionItem/PriceRange.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/type.ts`, `packages/uikit/src/components/Image/styles.tsx`, `packages/uikit/src/tokens/colors.ts`, `apps/web/src/state/farmsV4/state/poolApr/atom.ts`, `packages/uikit/src/components/Svg/Icons/SwapHoriz.tsx`, `packages/uikit/src/components/Svg/Icons/SortArrow.tsx`, `packages/widgets-internal/components/NumberDisplay/FiatNumberDisplay.tsx`, `apps/web/src/views/universalFarms/components/PoolAprButton/AprButton.tsx`, `packages/uikit/src/components/TableView/index.stories.tsx`, `apps/web/src/views/PoolDetail/components/ChartLiquidity/ChartToolTip.tsx`, `packages/uikit/src/components/TreeSelect/index.stories.tsx`, `packages/widgets-internal/components/FeeTierTooltip/index.tsx`, `apps/web/src/pages/api/configs/farms/[chain].ts`, `packages/utils/formatNumber.ts`, `apps/web/src/views/PoolFinder/index.tsx`, `apps/web/src/views/AddLiquidityV3/Modal.tsx`, `apps/web/src/views/PoolDetail/components/PoolCharts.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useExtraV3PositionInfo.ts`, `packages/localization/src/config/translations.json`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountV2LpDetails.ts`, `apps/web/src/views/PoolDetail/hooks/usePoolTransactions.ts`, `apps/web/src/views/universalFarms/components/PositionActions/StakeActions.tsx`, `apps/web/src/views/universalFarms/hooks/useMultiChainsTokens.tsx`, `apps/web/src/views/universalFarms/components/PoolAprButton/PoolAprButton.tsx`, `packages/widgets-internal/farm/components/NetworkFilter/NetworkFilter.tsx`, `apps/web/src/views/universalFarms/UniversalFarms.tsx`, `apps/web/src/views/universalFarms/components/Modals/V3StakeModal.tsx`, `apps/web/src/views/universalFarms/components/PoolAprButton/AprTooltipContent.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/fetcher/v3/getAccountV3Positions.ts`, `apps/web/src/views/AddLiquidityV3/index.tsx`, `apps/web/src/views/universalFarms/components/PositionItem/PositionItem.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/hooks/useAccountPositionDetailByPool.ts`, `apps/web/src/components/TokenImage/index.tsx`, `apps/web/src/views/universalFarms/hooks/useCakeEarning.ts`, `apps/web/src/views/universalFarms/components/PositionItem/V3PositionItem.tsx`, `apps/web/src/views/AddLiquidityV3/components/AprCalculatorV2.tsx`, `apps/web/src/state/farmsV4/state/extendPools/hooks.ts`, `apps/web/src/views/PoolDetail/components/PoolCurrencies.tsx`, `apps/web/src/views/PoolDetail/components/PoolStatus.tsx`, `packages/farms/src/farms/bCakeWrapper.ts`, `apps/web/src/views/universalFarms/hooks/useEstimateUserMultiplier.ts`, `apps/web/src/views/PoolDetail/components/Transactions/styled.ts`, `apps/web/src/state/farmsV4/state/poolApr/hooks.ts`, `apps/web/src/state/farmsV4/state/utils.ts`, `apps/web/src/views/universalFarms/components/PositionItem/StablePositionItem.tsx`, `packages/uikit/src/components/TableView/SortArrowButton.tsx`, `apps/web/src/views/universalFarms/components/PositionItem/V2PositionItem.tsx`, `packages/farms/src/farms/linea.ts`, `apps/web/src/views/PoolDetail/components/PoolInfo.tsx`, `apps/web/src/views/universalFarms/components/PoolListItemAction.tsx`, `packages/uikit/src/components/TableView/Table.tsx`, `apps/web/src/views/universalFarms/components/useColumnConfig.tsx`, `packages/widgets-internal/components/TokenFilter/TokenFilter.tsx`, `apps/web/src/hooks/Tokens.ts`, `apps/web/src/views/universalFarms/components/PoolsFilterPanel.tsx`, `packages/uikit/src/components/MultiSelect/SearchBox.tsx`, `apps/web/src/views/universalFarms/components/PoolListView.tsx`, `apps/web/src/views/universalFarms/components/PositionActions/V3PositionActions.tsx`, `apps/web/src/state/farmsV4/state/farmPools/fetcher.ts`, `apps/web/src/views/universalFarms/components/PoolAprButton/V3PoolAprModal.tsx`, `apps/web/src/views/universalFarms/components/PoolAprButton/V2PoolAprModal.tsx`, `apps/web/src/hooks/v3/usePools.ts`, `packages/farms/src/farms/index.test.ts`, `apps/web/src/views/universalFarms/components/PositionItem/PositionInfo.tsx`, `apps/web/src/views/PoolDetail/components/ChartLiquidity/ChartV3Liquidity.tsx`, `packages/farms/src/farms/polygonZkEVM.ts`, `packages/uikit/src/components/MultiSelect/MultiSelect.tsx`, `apps/web/src/views/universalFarms/PoolsPage.tsx`, `apps/web/src/state/farmsV4/state/farmPools/hooks.ts`, `packages/farms/src/farms/zkSync.ts`, `apps/web/src/views/PoolDetail/components/Transactions/TransactionsTable.tsx`, `packages/farms/src/farms/base.ts`, `apps/web/src/views/universalFarms/components/PositionActions/V2PositionActions.tsx`, `apps/web/src/views/universalFarms/components/PoolAprButton/PoolPositionAprButton.tsx`, `apps/web/src/views/universalFarms/PositionPage.tsx`, `apps/web/src/state/farmsV4/state/accountPositions/fetcher.ts`, `apps/web/src/views/PoolDetail/components/MyPositions.tsx`, `apps/web/src/state/farmsV4/state/poolApr/fetcher.ts`, `packages/farms/src/farms/eth.ts`, `packages/farms/src/farms/arb.ts`, `packages/farms/src/farms/bsc.ts`, `apps/web/src/state/info/api/schema.d.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> --------- Co-authored-by: ChefEric <[email protected]>
- Loading branch information