diff --git a/packages/dodoex-components/package.json b/packages/dodoex-components/package.json index d3a67bae..5565165d 100644 --- a/packages/dodoex-components/package.json +++ b/packages/dodoex-components/package.json @@ -1,6 +1,6 @@ { "name": "@dodoex/components", - "version": "3.0.2", + "version": "3.0.3", "description": "UI component library", "source": "src/index.ts", "types": "dist/types/index.d.ts", diff --git a/packages/dodoex-components/src/Checkbox/Checkbox.tsx b/packages/dodoex-components/src/Checkbox/Checkbox.tsx index a30769d7..0e43c113 100644 --- a/packages/dodoex-components/src/Checkbox/Checkbox.tsx +++ b/packages/dodoex-components/src/Checkbox/Checkbox.tsx @@ -1,11 +1,9 @@ import { Box, styled, useTheme } from '@mui/system'; -import { forwardRef } from 'react'; +import React, { forwardRef } from 'react'; import { CheckboxProps } from './Checkbox.types'; import { Done as CheckedIcon } from '@dodoex/icons'; -const Checkbox = forwardRef(function Checkbox< - RootComponentType extends React.ElementType, ->( +function Checkbox( props: CheckboxProps, forwardedRef: React.ForwardedRef, ) { @@ -89,6 +87,9 @@ const Checkbox = forwardRef(function Checkbox< ); -}); +} -export default Checkbox; +export default forwardRef(Checkbox) as ( + // eslint-disable-next-line no-unused-vars + props: CheckboxProps & { ref?: React.ForwardedRef }, +) => ReturnType; diff --git a/packages/dodoex-components/src/Hover/HoverAddBackground.tsx b/packages/dodoex-components/src/Hover/HoverAddBackground.tsx index 7227af65..eeff1b93 100644 --- a/packages/dodoex-components/src/Hover/HoverAddBackground.tsx +++ b/packages/dodoex-components/src/Hover/HoverAddBackground.tsx @@ -7,8 +7,8 @@ interface Prop extends BoxProps { hoverColor?: string; } -const HoverAddBackground = forwardRef( - ({ sx, hoverColor, ...other }: Prop, ref: any) => { +const HoverAddBackground = forwardRef( + ({ sx, hoverColor, ...other }, ref) => { const theme = useTheme(); const { isMobile } = useDevices(); const isLight = theme.palette.mode === 'light'; @@ -40,4 +40,6 @@ const HoverAddBackground = forwardRef( }, ); +HoverAddBackground.displayName = 'HoverAddBackground'; + export default HoverAddBackground; diff --git a/packages/dodoex-components/src/Hover/HoverOpacity.tsx b/packages/dodoex-components/src/Hover/HoverOpacity.tsx index 84b1c4c3..cc11af1b 100644 --- a/packages/dodoex-components/src/Hover/HoverOpacity.tsx +++ b/packages/dodoex-components/src/Hover/HoverOpacity.tsx @@ -2,46 +2,41 @@ import { merge } from 'lodash'; import { forwardRef } from 'react'; import { Box, BoxProps } from '../Box'; -const HoverOpacity = forwardRef( - ( - { - weak, - color, - sx, - ...attrs - }: BoxProps & { - weak?: boolean; - color?: string; +const HoverOpacity = forwardRef< + HTMLDivElement, + BoxProps & { + weak?: boolean; + color?: string; + } +>(({ weak, color, sx, ...attrs }, ref) => { + let defaultColor = weak ? 'text.primary' : 'text.secondary'; + let hoverColor = weak ? 'text.secondary' : 'text.primary'; + if (color) { + defaultColor = color; + hoverColor = color; + } + const hoverCss = { + '&:hover': { + color: hoverColor, + opacity: color && weak ? 0.5 : 1, }, - ref: any, - ) => { - let defaultColor = weak ? 'text.primary' : 'text.secondary'; - let hoverColor = weak ? 'text.secondary' : 'text.primary'; - if (color) { - defaultColor = color; - hoverColor = color; - } - const hoverCss = { - '&:hover': { - color: hoverColor, - opacity: color && weak ? 0.5 : 1, - }, - }; - return ( - - ); - }, -); + }; + return ( + + ); +}); + +HoverOpacity.displayName = 'HoverOpacity'; export default HoverOpacity; diff --git a/packages/dodoex-components/src/Input/Input.tsx b/packages/dodoex-components/src/Input/Input.tsx index a5254de8..a44255d3 100644 --- a/packages/dodoex-components/src/Input/Input.tsx +++ b/packages/dodoex-components/src/Input/Input.tsx @@ -125,7 +125,7 @@ const StyledInput = styled(Box)(({ theme }) => { `; }); -export default forwardRef(function Input( +export default forwardRef(function Input( { fullWidth, error, @@ -138,8 +138,8 @@ export default forwardRef(function Input( dataTestId, inputSx, ...attrs - }: InputProps, - ref: React.ForwardedRef, + }, + ref, ) { const InputBaseRootMemo = useCallback( (props: any) => ( diff --git a/packages/dodoex-components/src/Select/index.tsx b/packages/dodoex-components/src/Select/index.tsx index 803e432e..7591bea2 100644 --- a/packages/dodoex-components/src/Select/index.tsx +++ b/packages/dodoex-components/src/Select/index.tsx @@ -186,7 +186,8 @@ const Popup = styled('div')` z-index: 10; `; -interface Props extends SelectProps { +interface Props + extends SelectProps { options?: SelectOption[]; fullWidth?: boolean; px?: number; @@ -196,7 +197,10 @@ interface Props e sx?: BoxProps['sx']; } -export function Select({ +export function Select< + Value = number | string, + Multiple extends boolean = false, +>({ options, fullWidth, px = 20, diff --git a/packages/dodoex-widgets/package.json b/packages/dodoex-widgets/package.json index 88fe546c..b5513133 100644 --- a/packages/dodoex-widgets/package.json +++ b/packages/dodoex-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@dodoex/widgets", - "version": "3.0.2-bartio.6", + "version": "3.0.2-bartio.8", "description": "DODO Widgets", "source": "src/index.tsx", "types": "dist/types/index.d.ts", @@ -59,7 +59,7 @@ "dependencies": { "@babel/runtime": "^7.17.0", "@dodoex/api": "3.0.3-bartio.1", - "@dodoex/components": "3.0.2", + "@dodoex/components": "3.0.3", "@dodoex/contract-request": "^1.3.0", "@dodoex/dodo-contract-request": "^1.9.0-alpha.9", "@dodoex/icons": "^2.0.2", diff --git a/packages/dodoex-widgets/src/locales/en-US.po b/packages/dodoex-widgets/src/locales/en-US.po index a47c6705..22927754 100644 --- a/packages/dodoex-widgets/src/locales/en-US.po +++ b/packages/dodoex-widgets/src/locales/en-US.po @@ -30,7 +30,7 @@ msgstr "Cross Chain" msgid "99% Default" msgstr "99% Default" -#: src/components/Swap/index.tsx:527 +#: src/components/Swap/index.tsx:529 msgid "The current slippage protection coefficient set exceeds {maxSlippageWarning}%, which may result in losses." msgstr "The current slippage protection coefficient set exceeds {maxSlippageWarning}%, which may result in losses." @@ -103,7 +103,7 @@ msgstr "* Please note that the Fee Rate cannot be modified after the pool is cre msgid "Switch to {0}" msgstr "Switch to {0}" -#: src/widgets/PoolWidget/Algebra/components/InputStepCounter.tsx:123 +#: src/widgets/PoolWidget/Algebra/components/InputStepCounter.tsx:129 #: src/widgets/PoolWidget/AMMV3/components/InputStepCounter.tsx:124 msgid "{tokenB} per {tokenA}" msgstr "{tokenB} per {tokenA}" @@ -179,7 +179,7 @@ msgstr "Select Pool" msgid "he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1." msgstr "he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1." -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:306 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:329 #: src/widgets/PoolWidget/Algebra/components/ReviewModal.tsx:78 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:537 #: src/widgets/PoolWidget/AMMV3/components/ReviewModal.tsx:65 @@ -218,7 +218,7 @@ msgid "Pay" msgstr "Pay" #: src/components/Swap/components/ReviewDialog.tsx:346 -#: src/components/Swap/index.tsx:452 +#: src/components/Swap/index.tsx:454 msgid "Due to the market condition, market price and estimated price may have a slight difference" msgstr "Due to the market condition, market price and estimated price may have a slight difference" @@ -243,16 +243,16 @@ msgstr "{0} confirmed" msgid "Creation Time" msgstr "Creation Time" -#: src/components/Swap/index.tsx:559 +#: src/components/Swap/index.tsx:561 msgid "The current network is inconsistent with the wallet - please switch in wallet" msgstr "The current network is inconsistent with the wallet - please switch in wallet" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:318 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:327 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:399 msgid "Set price range" msgstr "Set price range" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:354 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:363 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:432 msgid "Full range" msgstr "Full range" @@ -283,7 +283,7 @@ msgstr "Max price" msgid "Staked Tokens" msgstr "Staked Tokens" -#: src/components/Swap/index.tsx:460 +#: src/components/Swap/index.tsx:462 msgid "Current price impact" msgstr "Current price impact" @@ -357,7 +357,7 @@ msgstr "Fee includes: Cross Chain fees + Swap fees. Gas fee not included." msgid "Confirm" msgstr "Confirm" -#: src/components/Swap/index.tsx:1030 +#: src/components/Swap/index.tsx:1073 msgid "Powered by DODO protocol" msgstr "Powered by DODO protocol" @@ -487,7 +487,7 @@ msgstr "Yes, I am sure" msgid "Add liquidity to obtain LP tokens for mining" msgstr "Add liquidity to obtain LP tokens for mining" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:342 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:365 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:561 msgid "Add more liquidity" msgstr "Add more liquidity" @@ -542,7 +542,7 @@ msgid "The pool’s market-making price is fixed" msgstr "The pool’s market-making price is fixed" #: src/widgets/PoolWidget/Algebra/components/Badge/RangeBadge.tsx:30 -#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:32 +#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:56 #: src/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.tsx:30 #: src/widgets/PoolWidget/AMMV3/components/RemoveButton.tsx:32 msgid "Closed" @@ -562,7 +562,7 @@ msgstr "Results in a relatively fixed price." msgid "Approving {0}..." msgstr "Approving {0}..." -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:451 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:469 #: src/widgets/PoolWidget/Algebra/components/PositionSelectedRangePreview.tsx:213 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:550 #: src/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.tsx:213 @@ -711,7 +711,7 @@ msgstr "Add Position" msgid "Emulator" msgstr "Emulator" -#: src/components/Swap/index.tsx:715 +#: src/components/Swap/index.tsx:719 msgid "Transaction Pending" msgstr "Transaction Pending" @@ -831,7 +831,7 @@ msgstr "End release time before adjustment" #: src/widgets/MiningWidget/MiningList/operate-area/StakeButton.tsx:105 #: src/widgets/MiningWidget/OperateArea/index.tsx:72 #: src/widgets/MiningWidget/OperateArea/StakeButton.tsx:80 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:223 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:224 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:449 msgid "Stake" msgstr "Stake" @@ -842,11 +842,11 @@ msgid "Price discrepancy {lqAndDodoCompareText} between liquidity pool and the q msgstr "Price discrepancy {lqAndDodoCompareText} between liquidity pool and the quote price on DODO." #: src/components/Swap/components/TokenPairPriceWithToggle.tsx:52 -#: src/components/Swap/index.tsx:580 +#: src/components/Swap/index.tsx:582 msgid "Fetching best price..." msgstr "Fetching best price..." -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:393 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:403 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:494 msgid "Invalid range selected. The min price must be lower than the max price." msgstr "Invalid range selected. The min price must be lower than the max price." @@ -855,7 +855,7 @@ msgstr "Invalid range selected. The min price must be lower than the max price." msgid "Liquidity Provider" msgstr "Liquidity Provider" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:712 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:756 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:793 msgid "*Collecting fees will withdraw currently available fees for you." msgstr "*Collecting fees will withdraw currently available fees for you." @@ -864,7 +864,7 @@ msgstr "*Collecting fees will withdraw currently available fees for you." msgid "Related CrowdPooling" msgstr "Related CrowdPooling" -#: src/components/Swap/index.tsx:804 +#: src/components/Swap/index.tsx:826 msgid "Review Swap" msgstr "Review Swap" @@ -901,7 +901,7 @@ msgstr "Any Ratio" msgid "Once created, you can adjust the pool’s market-making price at any time. This option is suitable for assets with fluctuating pegged prices. Adjusting the pool’s market-making price allows for more competitive quotes." msgstr "Once created, you can adjust the pool’s market-making price at any time. This option is suitable for assets with fluctuating pegged prices. Adjusting the pool’s market-making price allows for more competitive quotes." -#: src/components/Swap/index.tsx:722 +#: src/components/Swap/index.tsx:726 msgid "Select Tokens" msgstr "Select Tokens" @@ -956,7 +956,7 @@ msgstr "Owner" msgid "The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1." msgstr "The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1." -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:496 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:514 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:278 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:591 msgid "Deposit amounts" @@ -994,13 +994,13 @@ msgstr "My Pools" msgid "Share Of Pool" msgstr "Share Of Pool" -#: src/components/Swap/index.tsx:902 +#: src/components/Swap/index.tsx:925 msgid "The setting has been switched to swap mode" msgstr "The setting has been switched to swap mode" #: src/components/Swap/components/TokenPairPriceWithToggle.tsx:61 -#: src/components/Swap/index.tsx:635 -#: src/components/Swap/index.tsx:764 +#: src/components/Swap/index.tsx:637 +#: src/components/Swap/index.tsx:768 msgid "Quote not available" msgstr "Quote not available" @@ -1047,7 +1047,7 @@ msgstr "Add Liquidity" #: src/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.tsx:85 #: src/widgets/MiningWidget/OperateArea/index.tsx:73 #: src/widgets/MiningWidget/OperateArea/UnstakeButton.tsx:70 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:224 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:225 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:450 msgid "Unstake" msgstr "Unstake" @@ -1066,7 +1066,7 @@ msgstr "If there are no participants before the end, the rewards cannot be taken msgid "Your position will appear here." msgstr "Your position will appear here." -#: src/components/Swap/index.tsx:749 +#: src/components/Swap/index.tsx:753 msgid "Fetching Price..." msgstr "Fetching Price..." @@ -1155,7 +1155,7 @@ msgid "The creator of the liquidity pool can adjust the liquidity distribution b msgstr "The creator of the liquidity pool can adjust the liquidity distribution by modifying the market-making price parameters. <0>Learn more" #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:185 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:241 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:242 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:389 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:523 msgid "Invalid pair" @@ -1200,7 +1200,7 @@ msgstr "Tx" msgid "Single" msgstr "Single" -#: src/components/Swap/index.tsx:794 +#: src/components/Swap/index.tsx:807 msgid "Review Cross Chain" msgstr "Review Cross Chain" @@ -1374,7 +1374,7 @@ msgstr "Your position will be 100% composed of {0} at this price" msgid "When adding rewards, the number of rewards for a single block may be adjusted" msgstr "When adding rewards, the number of rewards for a single block may be adjusted" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:419 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:429 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:519 msgid "This pool must be initialized before you can add liquidity. To initialize, select a starting price for the pool. Then, enter your liquidity price range and deposit amount. Gas fees will be higher than usual due to the initialization transaction." msgstr "This pool must be initialized before you can add liquidity. To initialize, select a starting price for the pool. Then, enter your liquidity price range and deposit amount. Gas fees will be higher than usual due to the initialization transaction." @@ -1465,7 +1465,7 @@ msgstr "Total Swap Fee" msgid "On" msgstr "On" -#: src/components/Swap/index.tsx:732 +#: src/components/Swap/index.tsx:736 #: src/hooks/Token/useGetTokenStatus.ts:60 #: src/hooks/Token/useTokenStatus.ts:134 msgid "Approve" @@ -1534,12 +1534,12 @@ msgstr "Minutes" msgid "Off" msgstr "Off" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:388 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:398 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:489 msgid "Your position will not earn fees or be used in trades until the market price moves into your range." msgstr "Your position will not earn fees or be used in trades until the market price moves into your range." -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:453 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:471 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:552 msgid "per" msgstr "per" @@ -1748,7 +1748,7 @@ msgstr "RPC node data exception" msgid "Estimated transaction time" msgstr "Estimated transaction time" -#: src/widgets/PoolWidget/Algebra/components/ClaimButton.tsx:28 +#: src/widgets/PoolWidget/Algebra/components/ClaimButton.tsx:52 #: src/widgets/PoolWidget/AMMV3/components/ClaimButton.tsx:28 msgid "Collect fees" msgstr "Collect fees" @@ -1793,7 +1793,7 @@ msgstr "Select Pool Version" #: src/widgets/MiningWidget/MiningDetail/MiningInfo.tsx:465 #: src/widgets/MiningWidget/MiningList/operate-area/index.tsx:204 #: src/widgets/MiningWidget/OperateArea/index.tsx:74 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:225 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:226 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:451 msgid "Claim" msgstr "Claim" @@ -1818,9 +1818,9 @@ msgstr "Back" msgid "Dynamic slippage is {recommendSlippage}%,the current slippage setting is higher than the dynamic slippage, which means you are willing to accept a worse final execution price." msgstr "Dynamic slippage is {recommendSlippage}%,the current slippage setting is higher than the dynamic slippage, which means you are willing to accept a worse final execution price." -#: src/components/Swap/index.tsx:738 +#: src/components/Swap/index.tsx:742 #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:188 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:244 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:245 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:534 msgid "Enter an amount" msgstr "Enter an amount" @@ -1829,7 +1829,7 @@ msgstr "Enter an amount" msgid "Ratio" msgstr "Ratio" -#: src/components/Swap/index.tsx:732 +#: src/components/Swap/index.tsx:736 #: src/components/TokenPairStatusButton.tsx:45 #: src/components/TokenStatusButton.tsx:31 msgid "Approving" @@ -1847,7 +1847,7 @@ msgstr "Min Price" msgid "Liquidity Providers" msgstr "Liquidity Providers" -#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:91 +#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:94 #: src/widgets/PoolWidget/AMMV3/components/RangeSelector.tsx:98 msgid "High price" msgstr "High price" @@ -1980,7 +1980,7 @@ msgstr "No matching pool found" msgid "Low" msgstr "Low" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:257 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:264 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:225 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:369 msgid "Select pair" @@ -2062,7 +2062,7 @@ msgstr "Traders" msgid "Unable to SETTLE during the cooling-off period" msgstr "Unable to SETTLE during the cooling-off period" -#: src/components/Swap/index.tsx:900 +#: src/components/Swap/index.tsx:923 msgid "The setting has been switched to cross chain mode" msgstr "The setting has been switched to cross chain mode" @@ -2079,7 +2079,7 @@ msgstr "Total Rewards" #: src/components/ConnectWallet/NeedConnectButton.tsx:87 #: src/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.tsx:55 #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:181 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:237 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:238 #: src/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.tsx:96 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:519 msgid "Connect to a wallet" @@ -2119,8 +2119,8 @@ msgstr "APY" msgid "AMM V2" msgstr "AMM V2" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:584 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:430 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:621 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:471 #: src/widgets/PoolWidget/AMMV3/components/Buttons.tsx:114 msgid "Preview" msgstr "Preview" @@ -2130,7 +2130,7 @@ msgid "Select Platform" msgstr "Select Platform" #: src/components/Swap/components/TokenCard/TokenLogoCollapse.tsx:64 -#: src/components/TokenSelect.tsx:124 +#: src/components/TokenSelect.tsx:130 #: src/widgets/MiningWidget/MiningCreate/components/PoolPicker.tsx:356 #: src/widgets/MiningWidget/MiningCreate/components/PoolPicker.tsx:414 #: src/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.tsx:99 @@ -2171,7 +2171,7 @@ msgstr "{0}/{1} Pool Tokens" msgid "Initial Price Alert" msgstr "Initial Price Alert" -#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:32 +#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:56 #: src/widgets/PoolWidget/AMMV3/components/RemoveButton.tsx:32 #: src/widgets/PoolWidget/PoolDetail/index.tsx:200 #: src/widgets/PoolWidget/PoolList/MyCreated.tsx:254 @@ -2204,7 +2204,7 @@ msgstr "SafeERC20: low-level call failed. Please contact the DODO team." msgid "Pool Creation Confirmation" msgstr "Pool Creation Confirmation" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:683 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:727 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:768 msgid "Claim fees" msgstr "Claim fees" @@ -2221,7 +2221,7 @@ msgstr "Create One" msgid "Status" msgstr "Status" -#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:67 +#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:69 #: src/widgets/PoolWidget/AMMV3/components/RangeSelector.tsx:73 msgid "Low price" msgstr "Low price" @@ -2234,7 +2234,7 @@ msgstr "differs from the price quoted by DODO by {lqAndDodoCompareText}" msgid "Real Time" msgstr "Real Time" -#: src/components/Swap/index.tsx:596 +#: src/components/Swap/index.tsx:598 msgid "Unsupported network - switch to trade" msgstr "Unsupported network - switch to trade" @@ -2256,7 +2256,7 @@ msgstr "Paid" msgid "Failed to add" msgstr "Failed to add" -#: src/components/Swap/index.tsx:895 +#: src/components/Swap/index.tsx:918 #: src/hooks/Swap/useExecuteSwap.ts:60 msgid "Swap" msgstr "Swap" @@ -2399,7 +2399,7 @@ msgstr "Claim Rewards" msgid "My Pools (PMM)" msgstr "My Pools (PMM)" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:408 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:418 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:508 msgid "Starting price" msgstr "Starting price" @@ -2408,7 +2408,7 @@ msgstr "Starting price" msgid "Total Rewards=Daily Rewards*Duration" msgstr "Total Rewards=Daily Rewards*Duration" -#: src/components/Swap/index.tsx:775 +#: src/components/Swap/index.tsx:779 #: src/components/TokenStatusButton.tsx:18 #: src/widgets/PoolWidget/PoolOperate/AddPoolOperate.tsx:120 #: src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.tsx:228 diff --git a/packages/dodoex-widgets/src/locales/zh-CN.po b/packages/dodoex-widgets/src/locales/zh-CN.po index 91a332d3..1174f683 100644 --- a/packages/dodoex-widgets/src/locales/zh-CN.po +++ b/packages/dodoex-widgets/src/locales/zh-CN.po @@ -30,7 +30,7 @@ msgstr "跨链桥" msgid "99% Default" msgstr "" -#: src/components/Swap/index.tsx:527 +#: src/components/Swap/index.tsx:529 msgid "The current slippage protection coefficient set exceeds {maxSlippageWarning}%, which may result in losses." msgstr "当前滑点保护系数设置超过{maxSlippageWarning}%,可能会造成损失。" @@ -103,7 +103,7 @@ msgstr "" msgid "Switch to {0}" msgstr "" -#: src/widgets/PoolWidget/Algebra/components/InputStepCounter.tsx:123 +#: src/widgets/PoolWidget/Algebra/components/InputStepCounter.tsx:129 #: src/widgets/PoolWidget/AMMV3/components/InputStepCounter.tsx:124 msgid "{tokenB} per {tokenA}" msgstr "" @@ -179,7 +179,7 @@ msgstr "" msgid "he slippage coefficient needs to be greater than or equal to 0, and less than or equal to 1." msgstr "" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:306 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:329 #: src/widgets/PoolWidget/Algebra/components/ReviewModal.tsx:78 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:537 #: src/widgets/PoolWidget/AMMV3/components/ReviewModal.tsx:65 @@ -218,7 +218,7 @@ msgid "Pay" msgstr "" #: src/components/Swap/components/ReviewDialog.tsx:346 -#: src/components/Swap/index.tsx:452 +#: src/components/Swap/index.tsx:454 msgid "Due to the market condition, market price and estimated price may have a slight difference" msgstr "由于市场情况不同,市场价格与估算价格可能略有差异。" @@ -243,16 +243,16 @@ msgstr "{0} 已确认" msgid "Creation Time" msgstr "" -#: src/components/Swap/index.tsx:559 +#: src/components/Swap/index.tsx:561 msgid "The current network is inconsistent with the wallet - please switch in wallet" msgstr "当前网络与钱包不一致,请在钱包中切换" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:318 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:327 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:399 msgid "Set price range" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:354 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:363 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:432 msgid "Full range" msgstr "" @@ -283,7 +283,7 @@ msgstr "" msgid "Staked Tokens" msgstr "" -#: src/components/Swap/index.tsx:460 +#: src/components/Swap/index.tsx:462 msgid "Current price impact" msgstr "当前价格冲击" @@ -357,7 +357,7 @@ msgstr "费用包括过跨链桥和交易的手续费,不包括 gas 费。" msgid "Confirm" msgstr "确认" -#: src/components/Swap/index.tsx:1030 +#: src/components/Swap/index.tsx:1073 msgid "Powered by DODO protocol" msgstr "Powered by DODO protocol" @@ -487,7 +487,7 @@ msgstr "" msgid "Add liquidity to obtain LP tokens for mining" msgstr "" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:342 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:365 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:561 msgid "Add more liquidity" msgstr "" @@ -542,7 +542,7 @@ msgid "The pool’s market-making price is fixed" msgstr "" #: src/widgets/PoolWidget/Algebra/components/Badge/RangeBadge.tsx:30 -#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:32 +#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:56 #: src/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.tsx:30 #: src/widgets/PoolWidget/AMMV3/components/RemoveButton.tsx:32 msgid "Closed" @@ -562,7 +562,7 @@ msgstr "" msgid "Approving {0}..." msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:451 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:469 #: src/widgets/PoolWidget/Algebra/components/PositionSelectedRangePreview.tsx:213 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:550 #: src/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.tsx:213 @@ -711,7 +711,7 @@ msgstr "" msgid "Emulator" msgstr "" -#: src/components/Swap/index.tsx:715 +#: src/components/Swap/index.tsx:719 msgid "Transaction Pending" msgstr "交易进行中" @@ -831,7 +831,7 @@ msgstr "" #: src/widgets/MiningWidget/MiningList/operate-area/StakeButton.tsx:105 #: src/widgets/MiningWidget/OperateArea/index.tsx:72 #: src/widgets/MiningWidget/OperateArea/StakeButton.tsx:80 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:223 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:224 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:449 msgid "Stake" msgstr "" @@ -842,11 +842,11 @@ msgid "Price discrepancy {lqAndDodoCompareText} between liquidity pool and the q msgstr "" #: src/components/Swap/components/TokenPairPriceWithToggle.tsx:52 -#: src/components/Swap/index.tsx:580 +#: src/components/Swap/index.tsx:582 msgid "Fetching best price..." msgstr "获取最优价格中..." -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:393 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:403 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:494 msgid "Invalid range selected. The min price must be lower than the max price." msgstr "" @@ -855,7 +855,7 @@ msgstr "" msgid "Liquidity Provider" msgstr "" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:712 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:756 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:793 msgid "*Collecting fees will withdraw currently available fees for you." msgstr "" @@ -864,7 +864,7 @@ msgstr "" msgid "Related CrowdPooling" msgstr "" -#: src/components/Swap/index.tsx:804 +#: src/components/Swap/index.tsx:826 msgid "Review Swap" msgstr "预览交易" @@ -901,7 +901,7 @@ msgstr "" msgid "Once created, you can adjust the pool’s market-making price at any time. This option is suitable for assets with fluctuating pegged prices. Adjusting the pool’s market-making price allows for more competitive quotes." msgstr "" -#: src/components/Swap/index.tsx:722 +#: src/components/Swap/index.tsx:726 msgid "Select Tokens" msgstr "选择代币" @@ -956,7 +956,7 @@ msgstr "" msgid "The pegged exchange rate refers to the exchange rate between two token assets where one's value is pegged/fixed by the other. For example, the pegged exchange rate between the US Dollar and USDT is 1." msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:496 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:514 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:278 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:591 msgid "Deposit amounts" @@ -994,13 +994,13 @@ msgstr "" msgid "Share Of Pool" msgstr "" -#: src/components/Swap/index.tsx:902 +#: src/components/Swap/index.tsx:925 msgid "The setting has been switched to swap mode" msgstr "设置已切换至闪兑模式" #: src/components/Swap/components/TokenPairPriceWithToggle.tsx:61 -#: src/components/Swap/index.tsx:635 -#: src/components/Swap/index.tsx:764 +#: src/components/Swap/index.tsx:637 +#: src/components/Swap/index.tsx:768 msgid "Quote not available" msgstr "没有报价" @@ -1047,7 +1047,7 @@ msgstr "" #: src/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.tsx:85 #: src/widgets/MiningWidget/OperateArea/index.tsx:73 #: src/widgets/MiningWidget/OperateArea/UnstakeButton.tsx:70 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:224 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:225 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:450 msgid "Unstake" msgstr "" @@ -1066,7 +1066,7 @@ msgstr "" msgid "Your position will appear here." msgstr "" -#: src/components/Swap/index.tsx:749 +#: src/components/Swap/index.tsx:753 msgid "Fetching Price..." msgstr "获取价格中..." @@ -1155,7 +1155,7 @@ msgid "The creator of the liquidity pool can adjust the liquidity distribution b msgstr "" #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:185 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:241 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:242 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:389 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:523 msgid "Invalid pair" @@ -1200,7 +1200,7 @@ msgstr "交易哈希:" msgid "Single" msgstr "" -#: src/components/Swap/index.tsx:794 +#: src/components/Swap/index.tsx:807 msgid "Review Cross Chain" msgstr "预览跨链交易" @@ -1374,7 +1374,7 @@ msgstr "" msgid "When adding rewards, the number of rewards for a single block may be adjusted" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:419 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:429 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:519 msgid "This pool must be initialized before you can add liquidity. To initialize, select a starting price for the pool. Then, enter your liquidity price range and deposit amount. Gas fees will be higher than usual due to the initialization transaction." msgstr "" @@ -1465,7 +1465,7 @@ msgstr "" msgid "On" msgstr "在" -#: src/components/Swap/index.tsx:732 +#: src/components/Swap/index.tsx:736 #: src/hooks/Token/useGetTokenStatus.ts:60 #: src/hooks/Token/useTokenStatus.ts:134 msgid "Approve" @@ -1534,12 +1534,12 @@ msgstr "分钟" msgid "Off" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:388 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:398 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:489 msgid "Your position will not earn fees or be used in trades until the market price moves into your range." msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:453 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:471 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:552 msgid "per" msgstr "" @@ -1748,7 +1748,7 @@ msgstr "RPC节点异常" msgid "Estimated transaction time" msgstr "预计交易时长" -#: src/widgets/PoolWidget/Algebra/components/ClaimButton.tsx:28 +#: src/widgets/PoolWidget/Algebra/components/ClaimButton.tsx:52 #: src/widgets/PoolWidget/AMMV3/components/ClaimButton.tsx:28 msgid "Collect fees" msgstr "" @@ -1793,7 +1793,7 @@ msgstr "" #: src/widgets/MiningWidget/MiningDetail/MiningInfo.tsx:465 #: src/widgets/MiningWidget/MiningList/operate-area/index.tsx:204 #: src/widgets/MiningWidget/OperateArea/index.tsx:74 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:225 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:226 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:451 msgid "Claim" msgstr "" @@ -1818,9 +1818,9 @@ msgstr "" msgid "Dynamic slippage is {recommendSlippage}%,the current slippage setting is higher than the dynamic slippage, which means you are willing to accept a worse final execution price." msgstr "" -#: src/components/Swap/index.tsx:738 +#: src/components/Swap/index.tsx:742 #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:188 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:244 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:245 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:534 msgid "Enter an amount" msgstr "输入代币数量" @@ -1829,7 +1829,7 @@ msgstr "输入代币数量" msgid "Ratio" msgstr "" -#: src/components/Swap/index.tsx:732 +#: src/components/Swap/index.tsx:736 #: src/components/TokenPairStatusButton.tsx:45 #: src/components/TokenStatusButton.tsx:31 msgid "Approving" @@ -1847,7 +1847,7 @@ msgstr "" msgid "Liquidity Providers" msgstr "" -#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:91 +#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:94 #: src/widgets/PoolWidget/AMMV3/components/RangeSelector.tsx:98 msgid "High price" msgstr "" @@ -1980,7 +1980,7 @@ msgstr "" msgid "Low" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:257 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:264 #: src/widgets/PoolWidget/AMMV2Create/index.tsx:225 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:369 msgid "Select pair" @@ -2062,7 +2062,7 @@ msgstr "" msgid "Unable to SETTLE during the cooling-off period" msgstr "在冷静期无法进行清算" -#: src/components/Swap/index.tsx:900 +#: src/components/Swap/index.tsx:923 msgid "The setting has been switched to cross chain mode" msgstr "设置已切换到跨链桥交易模式" @@ -2079,7 +2079,7 @@ msgstr "" #: src/components/ConnectWallet/NeedConnectButton.tsx:87 #: src/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.tsx:55 #: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:181 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:237 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:238 #: src/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.tsx:96 #: src/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.tsx:519 msgid "Connect to a wallet" @@ -2119,8 +2119,8 @@ msgstr "" msgid "AMM V2" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:584 -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:430 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:621 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:471 #: src/widgets/PoolWidget/AMMV3/components/Buttons.tsx:114 msgid "Preview" msgstr "" @@ -2130,7 +2130,7 @@ msgid "Select Platform" msgstr "" #: src/components/Swap/components/TokenCard/TokenLogoCollapse.tsx:64 -#: src/components/TokenSelect.tsx:124 +#: src/components/TokenSelect.tsx:130 #: src/widgets/MiningWidget/MiningCreate/components/PoolPicker.tsx:356 #: src/widgets/MiningWidget/MiningCreate/components/PoolPicker.tsx:414 #: src/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.tsx:99 @@ -2171,7 +2171,7 @@ msgstr "" msgid "Initial Price Alert" msgstr "" -#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:32 +#: src/widgets/PoolWidget/Algebra/components/RemoveButton.tsx:56 #: src/widgets/PoolWidget/AMMV3/components/RemoveButton.tsx:32 #: src/widgets/PoolWidget/PoolDetail/index.tsx:200 #: src/widgets/PoolWidget/PoolList/MyCreated.tsx:254 @@ -2204,7 +2204,7 @@ msgstr "SafeERC20:low-level call failed,请联系DODO团队解决。" msgid "Pool Creation Confirmation" msgstr "" -#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:683 +#: src/widgets/PoolWidget/Algebra/AlgebraPositionManage.tsx:727 #: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:768 msgid "Claim fees" msgstr "" @@ -2221,7 +2221,7 @@ msgstr "" msgid "Status" msgstr "" -#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:67 +#: src/widgets/PoolWidget/Algebra/components/RangeSelector.tsx:69 #: src/widgets/PoolWidget/AMMV3/components/RangeSelector.tsx:73 msgid "Low price" msgstr "" @@ -2234,7 +2234,7 @@ msgstr "" msgid "Real Time" msgstr "" -#: src/components/Swap/index.tsx:596 +#: src/components/Swap/index.tsx:598 msgid "Unsupported network - switch to trade" msgstr "未支持网络 - 请切换后进行交易" @@ -2256,7 +2256,7 @@ msgstr "" msgid "Failed to add" msgstr "" -#: src/components/Swap/index.tsx:895 +#: src/components/Swap/index.tsx:918 #: src/hooks/Swap/useExecuteSwap.ts:60 msgid "Swap" msgstr "交易" @@ -2399,7 +2399,7 @@ msgstr "" msgid "My Pools (PMM)" msgstr "" -#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:408 +#: src/widgets/PoolWidget/Algebra/AddLiquidity.tsx:418 #: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:508 msgid "Starting price" msgstr "" @@ -2408,7 +2408,7 @@ msgstr "" msgid "Total Rewards=Daily Rewards*Duration" msgstr "" -#: src/components/Swap/index.tsx:775 +#: src/components/Swap/index.tsx:779 #: src/components/TokenStatusButton.tsx:18 #: src/widgets/PoolWidget/PoolOperate/AddPoolOperate.tsx:120 #: src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.tsx:228 diff --git a/packages/dodoex-widgets/src/widgets/PoolWidget/Algebra/AddLiquidity.tsx b/packages/dodoex-widgets/src/widgets/PoolWidget/Algebra/AddLiquidity.tsx index e4fc3529..57455437 100644 --- a/packages/dodoex-widgets/src/widgets/PoolWidget/Algebra/AddLiquidity.tsx +++ b/packages/dodoex-widgets/src/widgets/PoolWidget/Algebra/AddLiquidity.tsx @@ -433,9 +433,17 @@ export default function AddLiquidity({ px: 16, py: 12, borderRadius: 8, - borderWidth: 1, - borderColor: theme.palette.border.main, - borderStyle: 'solid', + ...(border + ? { + borderWidth: 3, + borderColor: 'text.primary', + borderStyle: 'solid', + } + : { + borderWidth: 1, + borderColor: theme.palette.border.main, + borderStyle: 'solid', + }), }} >