diff --git a/src/components/transactions/Warnings/MarketWarning.tsx b/src/components/transactions/Warnings/MarketWarning.tsx index 802d71a496..f53b5db948 100644 --- a/src/components/transactions/Warnings/MarketWarning.tsx +++ b/src/components/transactions/Warnings/MarketWarning.tsx @@ -1,11 +1,12 @@ import { Trans } from '@lingui/macro'; import { Link, Typography, AlertColor } from '@mui/material'; +import { ReactNode } from 'react'; import { Warning } from '../../primitives/Warning'; interface MarketWarningProps { learnMore?: boolean; // Modify wording on link text, - warningMessage: string; + warningMessage: ReactNode; linkHref?: string; warningType: AlertColor; } @@ -19,12 +20,10 @@ export const MarketWarning = ({ return ( - - {warningMessage}{' '} - - {learnMore ? 'Learn More' : 'Join the community discussion'} - - + {warningMessage}{' '} + + {learnMore ? Learn More : Join the community discussion} + ); diff --git a/src/locales/en/messages.js b/src/locales/en/messages.js index 21c44fd6ae..d1b08d6d78 100644 --- a/src/locales/en/messages.js +++ b/src/locales/en/messages.js @@ -175,6 +175,8 @@ Discord: 'Discord', 'Due to a precision bug in the stETH contract, this asset can not be used in flashloan transactions': 'Due to a precision bug in the stETH contract, this asset can not be used in flashloan transactions', + 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.': + 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.', 'E-Mode': 'E-Mode', 'E-Mode Category': 'E-Mode Category', 'E-Mode category': 'E-Mode category', @@ -264,7 +266,9 @@ 'Isolated Debt Ceiling': 'Isolated Debt Ceiling', 'Isolated assets have limited borrowing power and other assets cannot be used as collateral.': 'Isolated assets have limited borrowing power and other assets cannot be used as collateral.', + 'Join the community discussion': 'Join the community discussion', Language: 'Language', + 'Learn More': 'Learn More', 'Learn more': 'Learn more', 'Learn more about risks involved': 'Learn more about risks involved', 'Learn more in our <0>FAQ guide': 'Learn more in our <0>FAQ guide', @@ -343,6 +347,8 @@ ' reserve gives annualized rewards.', ], 'Pending...': 'Pending...', + 'Per the community, the Fantom market has been frozen.': + 'Per the community, the Fantom market has been frozen.', 'Please connect a wallet to view your personal information here.': 'Please connect a wallet to view your personal information here.', 'Please connect your wallet to get free testnet assets.': @@ -719,6 +725,5 @@ '{networkName} Faucet': [['networkName'], ' Faucet'], '{s}s': [['s'], 's'], '{tooltipText}': [['tooltipText']], - '{warningMessage} <0>{0}': [['warningMessage'], ' <0>', ['0'], ''], }, }; diff --git a/src/locales/en/messages.po b/src/locales/en/messages.po index e511abed98..b9f4a74268 100644 --- a/src/locales/en/messages.po +++ b/src/locales/en/messages.po @@ -622,6 +622,13 @@ msgstr "Discord" msgid "Due to a precision bug in the stETH contract, this asset can not be used in flashloan transactions" msgstr "Due to a precision bug in the stETH contract, this asset can not be used in flashloan transactions" +#: src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx +#: src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx +#: src/modules/markets/AssetsList.tsx +#: src/modules/reserve-overview/ReserveActions.tsx +msgid "Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market." +msgstr "Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market." + #: src/modules/dashboard/DashboardEModeButton.tsx msgid "E-Mode" msgstr "E-Mode" @@ -874,10 +881,18 @@ msgstr "Isolated Debt Ceiling" msgid "Isolated assets have limited borrowing power and other assets cannot be used as collateral." msgstr "Isolated assets have limited borrowing power and other assets cannot be used as collateral." +#: src/components/transactions/Warnings/MarketWarning.tsx +msgid "Join the community discussion" +msgstr "Join the community discussion" + #: src/layouts/components/LanguageSwitcher.tsx msgid "Language" msgstr "Language" +#: src/components/transactions/Warnings/MarketWarning.tsx +msgid "Learn More" +msgstr "Learn More" + #: src/components/caps/DebtCeilingStatus.tsx #: src/components/infoTooltips/BorrowCapMaxedTooltip.tsx #: src/components/infoTooltips/DebtCeilingMaxedTooltip.tsx @@ -1122,6 +1137,13 @@ msgstr "Participating in this {symbol} reserve gives annualized rewards." msgid "Pending..." msgstr "Pending..." +#: src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx +#: src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx +#: src/modules/markets/AssetsList.tsx +#: src/modules/reserve-overview/ReserveActions.tsx +msgid "Per the community, the Fantom market has been frozen." +msgstr "Per the community, the Fantom market has been frozen." + #: src/modules/reserve-overview/ReserveActions.tsx msgid "Please connect a wallet to view your personal information here." msgstr "Please connect a wallet to view your personal information here." @@ -2199,7 +2221,3 @@ msgstr "{s}s" #: src/components/CircleIcon.tsx msgid "{tooltipText}" msgstr "{tooltipText}" - -#: src/components/transactions/Warnings/MarketWarning.tsx -msgid "{warningMessage} <0>{0}" -msgstr "{warningMessage} <0>{0}" diff --git a/src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx b/src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx index 3a77d302ae..586977e925 100644 --- a/src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx +++ b/src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx @@ -122,7 +122,10 @@ export const BorrowAssetsList = () => { learnMore={true} linkHref={`https://governance.aave.com/t/harmony-horizon-bridge-exploit-consequences-to-aave-v3-harmony/8614`} warningMessage={ - 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.' + + Due to the Horizon bridge exploit, certain assets on the Harmony network are not + at parity with Ethereum, which affects the Aave V3 Harmony market. + } warningType={'error'} /> @@ -132,7 +135,7 @@ export const BorrowAssetsList = () => { Per the community, the Fantom market has been frozen.} warningType={'error'} /> )} diff --git a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx index 43b1dc535b..272bc17061 100644 --- a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx +++ b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx @@ -170,7 +170,10 @@ export const SupplyAssetsList = () => { learnMore={true} linkHref={`https://governance.aave.com/t/harmony-horizon-bridge-exploit-consequences-to-aave-v3-harmony/8614`} warningMessage={ - 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.' + + Due to the Horizon bridge exploit, certain assets on the Harmony network are not + at parity with Ethereum, which affects the Aave V3 Harmony market. + } warningType={'error'} /> @@ -178,7 +181,9 @@ export const SupplyAssetsList = () => { Per the community, the Fantom market has been frozen. + } warningType={'error'} /> ) : user?.isInIsolationMode ? ( diff --git a/src/modules/markets/AssetsList.tsx b/src/modules/markets/AssetsList.tsx index b179c1843b..e01c7658e5 100644 --- a/src/modules/markets/AssetsList.tsx +++ b/src/modules/markets/AssetsList.tsx @@ -113,7 +113,10 @@ export default function AssetsList() { learnMore={true} linkHref={`https://governance.aave.com/t/harmony-horizon-bridge-exploit-consequences-to-aave-v3-harmony/8614`} warningMessage={ - 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.' + + Due to the Horizon bridge exploit, certain assets on the Harmony network are not at + parity with Ethereum, which affects the Aave V3 Harmony market. + } warningType={'error'} /> @@ -125,7 +128,7 @@ export default function AssetsList() { Per the community, the Fantom market has been frozen.} warningType={'error'} /> diff --git a/src/modules/reserve-overview/ReserveActions.tsx b/src/modules/reserve-overview/ReserveActions.tsx index 1bf951841d..835a67a806 100644 --- a/src/modules/reserve-overview/ReserveActions.tsx +++ b/src/modules/reserve-overview/ReserveActions.tsx @@ -312,7 +312,10 @@ export const ReserveActions = ({ underlyingAsset }: ReserveActionsProps) => { learnMore={true} linkHref={`https://governance.aave.com/t/harmony-horizon-bridge-exploit-consequences-to-aave-v3-harmony/8614`} warningMessage={ - 'Due to the Horizon bridge exploit, certain assets on the Harmony network are not at parity with Ethereum, which affects the Aave V3 Harmony market.' + + Due to the Horizon bridge exploit, certain assets on the Harmony network are not at + parity with Ethereum, which affects the Aave V3 Harmony market. + } warningType={'error'} /> @@ -323,7 +326,7 @@ export const ReserveActions = ({ underlyingAsset }: ReserveActionsProps) => { Per the community, the Fantom market has been frozen.} warningType={'error'} />