Skip to content

Commit

Permalink
feat: add scrollRef props
Browse files Browse the repository at this point in the history
  • Loading branch information
junjieit committed Jan 2, 2025
1 parent 90f9003 commit aaf52ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/widgets",
"version": "3.0.2-beta.1",
"version": "3.0.2-beta.2",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/dodoex-widgets/src/locales/en-US.po
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ msgid "Pricing Model"
msgstr "Pricing Model"

#: src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.tsx:74
#: src/widgets/PoolWidget/PoolList/index.tsx:177
#: src/widgets/PoolWidget/PoolList/index.tsx:179
#: src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.ts:17
msgid "Liquidity"
msgstr "Liquidity"
Expand Down Expand Up @@ -1108,7 +1108,7 @@ msgid "Estimated Time"
msgstr "Estimated Time"

#: src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.ts:19
#: src/widgets/PoolWidget/PoolList/index.tsx:178
#: src/widgets/PoolWidget/PoolList/index.tsx:180
msgid "Classical AMM-like pool. Suitable for most assets."
msgstr "Classical AMM-like pool. Suitable for most assets."

Expand Down
4 changes: 2 additions & 2 deletions packages/dodoex-widgets/src/locales/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ msgid "Pricing Model"
msgstr ""

#: src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.tsx:74
#: src/widgets/PoolWidget/PoolList/index.tsx:177
#: src/widgets/PoolWidget/PoolList/index.tsx:179
#: src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.ts:17
msgid "Liquidity"
msgstr ""
Expand Down Expand Up @@ -1108,7 +1108,7 @@ msgid "Estimated Time"
msgstr "预计时间"

#: src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.ts:19
#: src/widgets/PoolWidget/PoolList/index.tsx:178
#: src/widgets/PoolWidget/PoolList/index.tsx:180
msgid "Classical AMM-like pool. Suitable for most assets."
msgstr ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ function TabPanelFlexCol({ sx, ...props }: Parameters<typeof TabPanel>[0]) {

export default function PoolList({
params,
scrollRef: scrollParentRefProps,
}: {
params?: Page<PageType.Pool>['params'];
scrollRef?: React.RefObject<any>;
}) {
const { isMobile } = useWidgetDevice();
const noDocumentLink = useUserOptions((state) => state.noDocumentLink);
Expand Down Expand Up @@ -138,7 +140,7 @@ export default function PoolList({
<AddLiquidityList
account={account}
filterChainIds={filterChainIds}
scrollParentRef={scrollParentRef}
scrollParentRef={scrollParentRefProps ?? scrollParentRef}
activeChainId={activeChainId}
handleChangeActiveChainId={handleChangeActiveChainId}
operatePool={operatePool}
Expand Down

0 comments on commit aaf52ed

Please sign in to comment.