Skip to content

Commit d5328bd

Browse files
authored
chore(PAN-4598): remove pnp warning (#11377)
<!-- 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 removes references to the `PNPWarning` component and associated warnings related to the `PNP` token from the BSC warning list and translation files, indicating a decision to no longer display these warnings. ### Detailed summary - Deleted the import of `PNPWarning` from `apps/web/src/views/Swap/components/SwapWarningModal/bsc/index.tsx`. - Removed the `PNPWarning` entry from the `BSC_WARNING_LIST` object. - Removed the translation key for "Caution - PNP Token" from `packages/localization/src/config/translations.json`. - Removed the warning message related to the `PNP` token from the translations file. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 73b8f31 commit d5328bd

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

apps/web/src/views/Swap/components/SwapWarningModal/bsc/PNPWarning.tsx

-29
This file was deleted.

apps/web/src/views/Swap/components/SwapWarningModal/bsc/index.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import ItamWarning from './ItamWarning'
1010
import LUSDWarning from './LUSDWarning'
1111
import METISWarning from './METISWarning'
1212
import NFPWarning from './NFPWarning'
13-
import PNPWarning from './PNPWarning'
1413
import RugPullWarning from './RugPullWarning'
1514
import SafemoonWarning from './SafemoonWarning'
1615
import XCADWarning from './XCADWarning'
@@ -71,10 +70,6 @@ const BSC_WARNING_LIST = {
7170
symbol: nfp.symbol,
7271
component: <NFPWarning />,
7372
},
74-
[pnp.address]: {
75-
symbol: pnp.symbol,
76-
component: <PNPWarning />,
77-
},
7873
}
7974

8075
export default BSC_WARNING_LIST

packages/localization/src/config/translations.json

-2
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,6 @@
32813281
"security compromise": "security compromise",
32823282
"For more information, please refer to Penpie’s": "For more information, please refer to Penpie’s",
32833283
"Please exercise due caution when trading / providing liquidity for the mPENDLE token. The protocol recently encountered a": "Please exercise due caution when trading / providing liquidity for the mPENDLE token. The protocol recently encountered a",
3284-
"Caution - PNP Token": "Caution - PNP Token",
32853284
"Try Zap to automatically balance and provide V3 liquidity in one click.": "Try Zap to automatically balance and provide V3 liquidity in one click.",
32863285
"Click here to start": "Click here to start",
32873286
"Zap in for %lpSymbol%": "Zap in for %lpSymbol%",
@@ -3329,7 +3328,6 @@
33293328
"Swap order filled": "Swap order filled",
33303329
"We are having some trouble filling your order. Please retry.": "We are having some trouble filling your order. Please retry.",
33313330
"No gas cost or fee will be charged on failed orders.": "No gas cost or fee will be charged on failed orders.",
3332-
"Please exercise due caution when trading / providing liquidity for the PNP token. The protocol recently encountered a": "Please exercise due caution when trading / providing liquidity for the PNP token. The protocol recently encountered a",
33333331
"For more information, please refer to %org%’s": "For more information, please refer to %org%’s",
33343332
"Please exercise due caution when trading / providing liquidity for the uniBTC token. The protocol recently encountered a security compromise.": "Please exercise due caution when trading / providing liquidity for the uniBTC token. The protocol recently encountered a security compromise.",
33353333
"Caution - %token% Token": "Caution - %token% Token",

0 commit comments

Comments
 (0)