diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 663ab0d5e..e5515c752 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2586,6 +2586,27 @@ "on": { "message": "On" }, + "onboardingAdvancedPrivacyIPFSDescription": { + "message": "The IPFS gateway makes it possible to access and view data hosted by third parties. You can add a custom IPFS gateway or continue using the default." + }, + "onboardingAdvancedPrivacyIPFSInvalid": { + "message": "Please enter a valid URL" + }, + "onboardingAdvancedPrivacyIPFSTitle": { + "message": "Add custom IPFS Gateway" + }, + "onboardingAdvancedPrivacyIPFSValid": { + "message": "IPFS gateway URL is valid" + }, + "onboardingAdvancedPrivacyNetworkButton": { + "message": "Add custom network" + }, + "onboardingAdvancedPrivacyNetworkDescription": { + "message": "We use Infura as our remote procedure call (RPC) provider to offer the most reliable and private access to Ethereum data we can. You can choose your own RPC, but remember that any RPC will receive your IP address and Ethereum wallet to make transactions. Read our $1 to learn more about how Infura handles data." + }, + "onboardingAdvancedPrivacyNetworkTitle": { + "message": "Choose your network" + }, "onboardingCreateWallet": { "message": "Create a new wallet" }, @@ -2620,6 +2641,9 @@ "onboardingMetametricsInfuraTermsPolicyLink": { "message": "here" }, + "onboardingMetametricsModalTitle": { + "message": "Add custom network" + }, "onboardingMetametricsNeverCollect": { "message": "$1 collect information we don’t need to provide the service (such as keys, addresses, transaction hashes, or balances)", "description": "$1 represents `onboardingMetametricsNeverEmphasis`" diff --git a/ui/components/app/dropdowns/network-dropdown.js b/ui/components/app/dropdowns/network-dropdown.js index e23125111..3badd8c07 100644 --- a/ui/components/app/dropdowns/network-dropdown.js +++ b/ui/components/app/dropdowns/network-dropdown.js @@ -101,6 +101,9 @@ class NetworkDropdown extends Component { showTestnetMessageInDropdown: PropTypes.bool.isRequired, hideTestNetMessage: PropTypes.func.isRequired, history: PropTypes.object, + dropdownStyles: PropTypes.object, + hideElementsForOnboarding: PropTypes.bool, + onAddClick: PropTypes.func, }; handleClick(newProviderType) { @@ -122,16 +125,21 @@ class NetworkDropdown extends Component { } renderAddCustomButton() { + const { onAddClick } = this.props; return (
+ ) : null} + + + } + /> + + {t('onboardingAdvancedPrivacyIPFSDescription')} + + { + handleIPFSChange(e.target.value); + }} + /> + {ipfsURL ? ( + + {ipfsError || t('onboardingAdvancedPrivacyIPFSValid')} + + ) : null} + + + } + />