Browse Source

Merge pull request #967 from NastiaS/add-new-exchanges

adding 2 new exchanges, extracting urls and making them more general
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
5986b1aefb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      src/components/ExchangePage/index.js
  2. 46
      src/components/ExchangePage/logos/paybis.js
  3. 27
      src/components/ExchangePage/logos/simplex.js
  4. 2
      src/components/FeesField/GenericContainer.js
  5. 2
      src/components/ManagerPage/index.js
  6. 2
      src/components/Onboarding/steps/Finish.js
  7. 4
      src/components/Onboarding/steps/GenuineCheck/index.js
  8. 2
      src/components/Onboarding/steps/NoDevice.js
  9. 2
      src/components/SettingsPage/sections/About.js
  10. 2
      src/components/SettingsPage/sections/Help.js
  11. 4
      src/components/modals/Receive/index.js
  12. 2
      src/components/modals/Send/fields/RecipientField.js
  13. 16
      src/config/urls.js
  14. 2
      static/i18n/en/app.yml

21
src/components/ExchangePage/index.js

@ -4,6 +4,7 @@ import React, { PureComponent } from 'react'
import { translate } from 'react-i18next'
import type { T } from 'types/common'
import { urls } from 'config/urls'
import TrackPage from 'analytics/TrackPage'
import Box from 'components/base/Box'
@ -12,6 +13,8 @@ import ExchangeCard from './ExchangeCard'
import CoinhouseLogo from './logos/coinhouse'
import ChangellyLogo from './logos/changelly'
import CoinmamaLogo from './logos/bigmama'
import SimplexLogo from './logos/simplex'
import PaybisLogo from './logos/paybis'
type Props = {
t: T,
@ -21,21 +24,33 @@ const cards = [
{
key: 'coinhouse',
id: 'coinhouse',
url: 'https://www.coinhouse.com/r/157530',
url: urls.coinbase,
logo: <CoinhouseLogo width={150} />,
},
{
key: 'changelly',
id: 'changelly',
url: 'https://changelly.com/?ref_id=aac789605a01',
url: urls.changelly,
logo: <ChangellyLogo width={150} />,
},
{
key: 'coinmama',
id: 'coinmama',
url: 'http://go.coinmama.com/visit/?bta=51801&nci=5343',
url: urls.coinmama,
logo: <CoinmamaLogo width={150} />,
},
{
key: 'simplex',
id: 'simplex',
url: urls.simplex,
logo: <SimplexLogo width={160} height={57} />,
},
{
key: 'paybis',
id: 'paybis',
url: urls.paybis,
logo: <PaybisLogo width={150} height={57} />,
},
]
class ExchangePage extends PureComponent<Props> {

46
src/components/ExchangePage/logos/paybis.js

@ -0,0 +1,46 @@
// @flow
import React, { Fragment } from 'react'
const inner = (
<Fragment>
<g fill="none" fillRule="evenodd">
<path d="M18.615 13.763h24.359V38.91h-24.36z" />
<path
fill="#424644"
d="M27.15 26.634h2.682c1.626 0 2.927-.297 3.902-.946 1.003-.595 1.599-1.46 1.843-2.596.243-1.298.054-2.19-.596-2.731-.65-.54-1.897-.784-3.74-.784H28.56l-1.41 7.057zm-1.572-12.87h3.577l-.623 3h3.062l.596-3h3.55l-.597 3h1.3c2.493 0 4.255.542 5.339 1.623 1.056 1.055 1.381 2.65.975 4.705-.406 2.028-1.355 3.596-2.9 4.705-1.517 1.109-3.522 1.65-5.933 1.65H26.58l-.271 1.297-1.517 7.599v.027l-.136.513h-5.771c.054-.162.081-.351.135-.54l3.306-16.603c.19-.892.135-1.514-.136-1.812-.298-.297-.948-.46-1.95-.46h-1.626l.515-2.703h5.852l.596-3.002z"
/>
<path d="M.813-.027H127.35v56.621H.813z" />
<path
fill="#3BB0DF"
d="M35.441 33.502c0 .081-.027.163-.027.244-.27 1.298-.84 2.19-1.707 2.73-.84.542-2.195.812-4.037.812h-.57c-3.711 0-9.537.081-13.276.081l-1.328 2.704h5.826l-.542 2.731h3.55l.541-2.73h3.062l-.542 2.73h3.55l.542-2.73h2.628c2.439 0 4.417-.542 5.934-1.596 1.49-1.082 2.438-2.65 2.872-4.732.406-2.028.054-3.57-1.03-4.678l-.054-.054 1.68-1.38h-7.451l-1.49 7.41 1.87-1.542zm8.02 17.008a26.402 26.402 0 0 1-14.333 4.219c-14.632 0-26.473-11.817-26.473-26.445 0-14.629 11.841-26.445 26.473-26.445 10.025 0 19.13 5.624 23.654 14.547h2.06C50.208 6.408 40.182 0 29.128 0 13.494 0 .813 12.655.813 28.284s12.68 28.283 28.315 28.283a28.4 28.4 0 0 0 17.53-6.057h-3.197zm82.182-16.845c.65-2.894-1.572-3.678-3.116-4.273-.949-.351-1.653-.676-1.463-1.541.135-.649.84-1.109 1.842-1.109.867 0 2.005.433 2.52.758l1.897-2.84c-.976-.595-2.385-1-4.282-1-3.414 0-5.744 1.622-6.34 4.218-.623 2.84 1.572 3.678 3.089 4.272.921.352 1.626.703 1.436 1.488-.162.703-.867 1.162-1.842 1.162-.867 0-2.222-.378-2.873-.757l-.84 3.624c.895.27 1.951.432 3.09.432 3.928 0 6.286-1.703 6.882-4.434zm-12.6 4.137l3.116-13.845h-4.227l-3.116 13.845h4.227zm4.281-17.928c.271-1.217-.596-2.217-1.87-2.217-1.3 0-2.573 1-2.844 2.217-.271 1.217.569 2.19 1.842 2.19 1.3 0 2.601-.973 2.872-2.19zm-12.49 10.924c-.57 2.57-1.925 4.03-3.686 4.03-.488 0-.948-.082-1.192-.19l1.653-7.382c.38-.162.921-.297 1.409-.297 1.707 0 2.357 1.406 1.815 3.84zm4.335-.378c.948-4.218-.976-6.652-4.58-6.652-.731 0-1.68.19-2.276.433l1.463-6.571H99.55l-4.39 19.469c1.03.54 2.9 1 4.959 1 4.714 0 7.884-2.488 9.05-7.68z"
/>
<path d="M69.853 24.2H97.03v17.334H69.853z" />
<path
fill="#424644"
d="M96.975 24.471H92.45l-3.522 7.571a24.423 24.423 0 0 0-.894 2.217h-.027s.081-1.19 0-2.217l-.57-7.57h-4.524l2.384 13.167-2.222 3.867h4.227l9.673-17.035zM80.61 36.963l1.544-7.922c.677-3.488-.867-4.84-4.444-4.84-1.03 0-2.113.108-3.034.297-.271 1.298-.813 2.38-1.653 3.218 1.002-.352 2.466-.703 3.658-.703 1.355 0 1.978.487 1.788 1.541l-.108.514c-4.038.216-7.75 1.027-8.427 4.515-.515 2.786 1.22 4.354 5.338 4.354 2.14 0 4.254-.433 5.338-.974zm-3.387-2.028c-.271.109-.976.19-1.518.19-1.436 0-2.222-.568-2.032-1.65.325-1.54 2.005-1.784 4.2-1.892l-.65 3.352z"
/>
<path d="M53.704 19.144H73.51v18.522H53.704z" />
<path
fill="#424644"
d="M60.749 27.364h1.87c1.354 0 2.438-.27 3.25-.757.813-.514 1.328-1.244 1.518-2.19.217-1.082.054-1.839-.488-2.271-.542-.46-1.571-.676-3.089-.676h-1.896l-1.165 5.894zm7.37-8.22c2.059 0 3.522.433 4.389 1.325.894.92 1.165 2.217.84 3.948-.352 1.676-1.138 3.001-2.412 3.894-1.273.946-2.899 1.406-4.93 1.406h-5.718l-.217 1.081-1.246 6.355-.027.027-.082.432H53.92c.055-.135.082-.297.109-.46l2.764-13.844c.135-.784.108-1.27-.136-1.54-.217-.244-.759-.38-1.626-.38h-1.327l.433-2.244H68.12z"
/>
<path d="M50.344 42.94h75.895v6.813H50.344z" />
<path
fill="#424644"
d="M53.27 48.023l1.3-5.084h-1.11l-.434 1.677a1.544 1.544 0 0 0-.433-.081c-1.111 0-1.897.73-2.168 1.892-.298 1.19.163 1.866 1.382 1.866.569 0 1.138-.108 1.463-.27zm-.948-.622c-.054.027-.217.027-.325.027-.461 0-.624-.352-.461-1.028.163-.622.488-1.027.975-1.027.109 0 .271.027.326.054l-.515 1.974zm4.01-3.894c.081-.324-.136-.568-.488-.568-.325 0-.677.244-.758.568-.082.325.135.568.487.568.325 0 .678-.243.759-.568zm-1.274 4.705l.922-3.623h-1.084l-.948 3.623h1.11zm3.902-.081l.867-3.38c-.27-.135-.731-.243-1.273-.243-1.22 0-2.087.622-2.412 1.838-.27 1.082.19 1.73 1.111 1.73.217 0 .488-.053.65-.107l-.027.162c-.108.433-.379.649-.84.649-.433 0-.785-.081-1.002-.19l-.515.839c.298.162.759.297 1.382.297 1.002 0 1.788-.54 2.06-1.595zm-.84-.946c-.108.027-.27.08-.406.08-.407 0-.596-.324-.434-.973.163-.649.515-.946.949-.946.135 0 .27 0 .352.027l-.46 1.812zm3.93-3.678c.08-.324-.136-.568-.489-.568-.325 0-.677.244-.758.568-.082.325.135.568.487.568.326 0 .678-.243.76-.568zm-1.274 4.705l.92-3.623h-1.083l-.948 3.623h1.11zm2.71-.054l.243-.92a.976.976 0 0 1-.298.055c-.217 0-.325-.081-.271-.325l.406-1.568h.624l.216-.811h-.65l.271-1.082-1.138.298-.217.784h-.406l-.217.81h.434l-.434 1.65c-.19.812 0 1.217.759 1.217.27 0 .542-.054.677-.108zm3.603-.135l.569-2.19c.244-.974-.163-1.325-1.138-1.325a4.81 4.81 0 0 0-1.517.243l.08.73c.299-.108.76-.216 1.085-.216.379 0 .569.135.487.432l-.054.136c-1.11.054-2.14.297-2.384 1.27-.19.785.27 1.19 1.409 1.19.569 0 1.165-.108 1.463-.27zm-.894-.541a1.471 1.471 0 0 1-.407.054c-.406 0-.596-.162-.542-.46.109-.432.597-.486 1.193-.513l-.244.919zm2.71.73l1.327-5.273h-1.11l-1.329 5.273h1.111zm11.217-.162l-.136-.811a1.04 1.04 0 0 1-.514.135c-.38 0-.596-.379-.434-.974.163-.649.515-1 .948-1 .19 0 .353.027.434.135l.542-.784c-.19-.162-.46-.243-.921-.243-.895 0-1.816.594-2.14 1.892-.326 1.271.27 1.893 1.164 1.893.46 0 .786-.081 1.057-.243zm3.522-3.515c-.135-.027-.298-.027-.514-.027-.65 0-1.193.08-1.653.243l-.867 3.461h1.11l.705-2.785c.108-.054.244-.054.38-.054.162 0 .297.027.406.054l.433-.892zm4.038.054h-1.247l-1.084 2.082c-.162.297-.298.622-.298.622s.027-.325.027-.622l-.027-2.082h-1.246l.433 3.623-.894 1.433h1.138l3.198-5.056zm3.251 1.811c.298-1.243-.162-1.892-1.382-1.892-.569 0-1.138.108-1.49.243l-1.246 4.894h1.11l.407-1.46c.081.027.27.054.433.054 1.111 0 1.87-.73 2.168-1.839zm-1.11 0c-.163.595-.516 1.028-.976 1.028a.886.886 0 0 1-.325-.054l.514-1.974a.886.886 0 0 1 .326-.054c.46 0 .623.351.46 1.054zm3.17 1.758l.243-.92a.976.976 0 0 1-.298.055c-.217 0-.325-.081-.27-.325l.406-1.568h.623l.217-.811h-.65l.297-1.082-1.165.298-.216.784h-.407l-.217.81h.434l-.434 1.65c-.19.812 0 1.217.759 1.217.27 0 .542-.054.677-.108zm4.253-1.758c.271-1.108-.135-1.892-1.219-1.892s-1.897.784-2.168 1.892c-.298 1.082.136 1.893 1.193 1.893 1.083 0 1.923-.811 2.194-1.893zm-1.11 0c-.163.65-.461 1-.84 1-.407 0-.515-.35-.326-1 .163-.703.461-1.054.84-1.054.38 0 .515.351.325 1.054zm5.419 1.65l-.136-.811a1.04 1.04 0 0 1-.515.135c-.379 0-.596-.379-.433-.974.162-.649.515-1 .921-1 .19 0 .352.027.46.135l.543-.784c-.217-.162-.461-.243-.949-.243-.867 0-1.815.594-2.14 1.892-.325 1.271.298 1.893 1.192 1.893.46 0 .759-.081 1.057-.243zm3.63-.027l.895-3.434h-1.111l-.705 2.758a1.701 1.701 0 0 1-.433.054c-.325 0-.434-.135-.38-.46l.624-2.352h-1.111l-.597 2.325c-.243.974.19 1.38 1.247 1.38.569 0 1.192-.109 1.571-.271zm3.713-3.488c-.109-.027-.299-.027-.515-.027-.623 0-1.192.08-1.626.243l-.894 3.461h1.11l.705-2.785c.109-.054.244-.054.407-.054.135 0 .298.027.379.054l.434-.892zm2.6 0c-.135-.027-.324-.027-.514-.027-.65 0-1.22.08-1.653.243l-.867 3.461h1.11l.705-2.785c.109-.054.244-.054.38-.054.162 0 .298.027.406.054l.434-.892zm3.144 1.65c.244-.974-.136-1.677-1.192-1.677-1.084 0-1.951.757-2.222 1.892-.271 1.082.135 1.893 1.382 1.893.542 0 1.138-.108 1.49-.27l-.108-.811a2.732 2.732 0 0 1-1.057.216c-.46 0-.759-.19-.732-.568l2.33-.297c.028-.136.055-.27.109-.379zm-1.03-.217l-1.3.162c.135-.595.514-.865.894-.865s.515.243.406.703zm4.254 2.244l.623-2.488c.217-.784-.162-1.216-1.3-1.216-.65 0-1.138.08-1.599.243l-.867 3.461h1.111l.705-2.785a1.89 1.89 0 0 1 .433-.054c.325 0 .46.162.38.46l-.597 2.379h1.111zm3.306-.162l-.136-.811a1.04 1.04 0 0 1-.514.135c-.38 0-.597-.379-.434-.974.163-.649.515-1 .921-1 .19 0 .353.027.46.135l.543-.784c-.217-.162-.46-.243-.948-.243-.868 0-1.816.594-2.141 1.892-.298 1.271.298 1.893 1.192 1.893.46 0 .759-.081 1.057-.243zm5.013-3.461h-1.247l-1.11 2.082c-.136.297-.272.622-.272.622s.027-.325.027-.622l-.027-2.082h-1.246l.433 3.623-.92 1.433h1.164l3.198-5.056zM76.03 45.67l.082-.838-1.897.325c-.19.027-.325.027-.433.027-.38 0-.57-.19-.488-.514.081-.298.352-.487.786-.487.27 0 .542.081.704.19l.542-.866c-.244-.135-.65-.243-1.165-.243-1.057 0-1.761.622-1.951 1.325-.108.432.027.838.434 1.027-.515.19-1.03.595-1.193 1.271-.216.92.38 1.406 1.626 1.406.677 0 1.274-.108 1.626-.27l.569-2.245.758-.108zm-2.22 1.73a2.435 2.435 0 0 1-.488.055c-.57 0-.813-.216-.705-.649.109-.406.434-.676.922-.757l.623-.081-.352 1.433z"
/>
<path d="M50.317 49.78h29.399v6.814h-29.4z" />
<path
fill="#424644"
d="M53.812 53.025c.244-.973-.135-1.676-1.192-1.676-1.084 0-1.924.757-2.222 1.892-.244 1.082.135 1.893 1.409 1.893.542 0 1.11-.108 1.49-.27l-.108-.811a2.766 2.766 0 0 1-1.084.216c-.434 0-.732-.19-.732-.568l2.33-.297c.055-.135.082-.27.109-.379zm-1.003-.216l-1.327.162c.162-.595.542-.865.921-.865.352 0 .515.243.406.703zm4.471 2.244l-.758-1.866 1.571-1.757h-1.246l-.813 1.027h-.027l-.271-1.027h-1.274l.705 1.757-1.707 1.866h1.246l.949-1.136.352 1.136h1.273zm2.791-.162l-.135-.811a1.04 1.04 0 0 1-.515.135c-.407 0-.596-.379-.434-.974.163-.648.515-1 .922-1 .19 0 .352.027.46.135l.542-.784c-.217-.162-.488-.243-.948-.243-.867 0-1.816.595-2.14 1.892-.326 1.271.297 1.893 1.191 1.893.461 0 .76-.08 1.057-.243zm3.63.162l.624-2.46c.19-.812-.162-1.244-1.03-1.244-.243 0-.514.08-.731.162l.433-1.73h-1.11l-1.355 5.272h1.11l.705-2.758a1.23 1.23 0 0 1 .434-.081c.352 0 .487.162.406.487l-.596 2.352h1.11zm3.74-.19l.57-2.19c.243-.973-.163-1.324-1.166-1.324-.542 0-1.138.108-1.49.243l.081.73c.298-.108.732-.216 1.084-.216.38 0 .542.135.46.432l-.027.136c-1.11.054-2.167.297-2.411 1.27-.19.758.244 1.19 1.436 1.19.569 0 1.165-.108 1.463-.27zm-.894-.54a1.643 1.643 0 0 1-.406.054c-.407 0-.624-.162-.542-.46.108-.432.569-.486 1.192-.513l-.244.92zm4.715.73l.65-2.488c.19-.784-.19-1.216-1.328-1.216-.65 0-1.138.08-1.571.243l-.894 3.461h1.11l.705-2.785a1.89 1.89 0 0 1 .433-.054c.326 0 .461.162.38.46l-.596 2.38h1.11zm3.901-.081l.84-3.38c-.27-.135-.704-.243-1.273-.243-1.192 0-2.086.622-2.385 1.838-.27 1.082.19 1.73 1.111 1.73.217 0 .461-.053.65-.107l-.054.162c-.108.433-.379.649-.84.649-.406 0-.758-.081-.975-.19l-.542.839c.325.162.759.297 1.41.297 1.002 0 1.787-.54 2.058-1.595zm-.867-.946a1.324 1.324 0 0 1-.379.08c-.434 0-.623-.324-.46-.973.162-.649.541-.946.948-.946.162 0 .27 0 .352.027l-.46 1.812zm5.311-1c.244-.974-.135-1.677-1.192-1.677-1.084 0-1.924.757-2.222 1.892-.27 1.082.136 1.893 1.409 1.893.542 0 1.111-.108 1.49-.27l-.108-.811a2.87 2.87 0 0 1-1.084.216c-.46 0-.731-.19-.731-.568l2.33-.297c.054-.135.081-.27.108-.379zm-1.002-.217l-1.328.162c.162-.595.515-.865.921-.865.352 0 .515.243.407.703z"
/>
</g>
</Fragment>
)
export default ({ width, height }: { width: number, height: number }) => (
<svg width={width} height={height}>
{inner}
</svg>
)

27
src/components/ExchangePage/logos/simplex.js

@ -0,0 +1,27 @@
// @flow
import React, { Fragment } from 'react'
const inner = (
<Fragment>
<path
fill="#75787B"
d="M58.227 22.684c.971.451 1.969.558 3.587.584 4.234.08 5.771 1.087 5.771 3.528a3.62 3.62 0 0 1-.377 1.644c-.243.477-.756.981-1.484 1.485-.728.504-1.995.743-3.802.743-2.562 0-4.45-.61-5.718-1.857a.89.89 0 0 1-.242-.53c.027-.451.242-.664.647-.664.216 0 .378.054.512.187.944 1.034 2.644 1.617 4.72 1.617 2.805 0 4.369-.955 4.369-2.652.027-.77-.216-1.273-.728-1.538-.998-.53-2.077-.664-3.803-.69-4.1-.08-5.501-.981-5.501-3.236 0-2.387 2.184-3.899 5.555-3.899 2.077 0 3.776.583 5.043 1.671a.69.69 0 0 1 .216.53c-.027.398-.243.637-.62.664-.216 0-.405-.053-.54-.186-.97-.928-2.4-1.406-4.018-1.406-.647 0-1.24.053-1.753.186a6.21 6.21 0 0 0-1.645.716c-.566.345-.836.902-.863 1.724-.027.69.216 1.14.674 1.38m39.721.397v6.684c0 .478-.216.716-.674.743-.459-.027-.702-.265-.702-.743v-6.551c0-2.97-1.267-4.536-3.721-4.536-2.481 0-4.073 1.936-4.073 5.04v6.047c0 .478-.215.716-.674.743-.458-.027-.701-.265-.701-.743v-6.551c0-2.97-1.267-4.536-3.721-4.536-2.508 0-4.073 1.936-4.073 5.04v6.047c0 .478-.242.716-.7.743-.432-.027-.648-.265-.675-.743V18.334c.027-.504.243-.742.674-.769.459.027.701.265.701.77v1.379h.054c.863-1.486 2.347-2.308 4.261-2.308 2.158 0 3.614.955 4.342 2.732h.054c.863-1.698 2.427-2.732 4.72-2.732 3.263 0 4.908 1.99 4.908 5.676m17.036.955c0-3.183-2.13-5.358-5.312-5.358-3.156 0-5.367 2.175-5.367 5.358s2.211 5.358 5.367 5.358c3.182 0 5.312-2.175 5.312-5.358m-10.68-5.702v1.83h.055c.27-.451.593-.823.944-1.167.377-.345.917-.69 1.618-1.035.7-.371 1.672-.557 2.94-.557 1.941 0 3.56.663 4.719 1.83 1.726 1.91 1.726 3.448 1.807 4.801 0 .982-.135 1.777-.594 3.024-.701 1.83-3.074 3.713-5.933 3.607-1.267 0-2.238-.186-2.94-.53-1.402-.743-2.022-1.353-2.561-2.228h-.054v6.79c0 .477-.216.716-.675.742-.458-.026-.7-.265-.7-.742V18.335c0-.504.242-.743.7-.77.46.027.675.266.675.77m17.605-5.968v17.399c0 .477-.242.716-.7.743-.432-.027-.648-.266-.675-.743v-17.4c.027-.477.243-.715.674-.742.46.027.702.265.702.743m5.464 10.901h10.598c-.35-2.758-2.373-4.589-5.286-4.589-2.966 0-4.962 1.83-5.312 4.589m11.084 1.247h-11.111c.215 2.917 2.265 4.88 5.475 4.88 1.914 0 3.397-.77 4.368-1.963a.62.62 0 0 1 .513-.265c.458.026.7.265.7.716a.612.612 0 0 1-.188.45c-1.24 1.433-3.047 2.335-5.393 2.335-2.077 0-3.803-.664-5.017-1.83-1.78-1.91-1.834-3.448-1.887-4.8 0-.982.107-1.805.62-2.998.755-1.857 3.155-3.767 6.148-3.634 3.857 0 6.608 2.626 6.608 6.313-.027.503-.324.769-.836.796m15.116 4.747a.773.773 0 0 1 .243.584c-.027.424-.27.636-.728.663-.216 0-.405-.106-.567-.292l-4.88-5.358-4.936 5.384a.633.633 0 0 1-.54.266c-.43-.027-.647-.266-.674-.69a.63.63 0 0 1 .19-.477l5.015-5.358-4.827-5.172c-.162-.186-.243-.372-.243-.584.027-.424.27-.636.728-.663.216 0 .405.107.567.292l4.746 5.252 4.773-5.279a.706.706 0 0 1 .54-.265c.431.027.647.265.674.69a.634.634 0 0 1-.189.477l-4.854 5.226 4.962 5.304z"
/>
<path
fill="#43B02A"
d="M21.135 8.867l5.553-4.355-12.48 2.8 6.927 1.555zm4.32.971l2.097-4.281L22.84 9.25l2.613.587zm3.325.747l.001-4.438-1.958 3.998 1.957.44zm3.978.893l-2.609-5.326v4.74l2.609.586zm-15.084.103l2.092-1.64-5.862-1.318 3.77 2.958zm23.72 1.838l-10.016-7.86 3.086 6.303 6.93 1.557zm-26.387.254l1.57-1.231-3.527-2.767 1.957 3.998zm7.67 1.834l2.168-4.426-3.373-.757-2.7 2.118 3.906 3.065zm13.708.28l4.705-1.056-5.867-1.318 1.162 2.373zm-24.568.388l2.092-1.641-2.091-4.274-.001 5.915zm18.33 1.01l4.87-1.092-1.5-3.063-3.369-.757v4.912zm-4.144.93l2.776-.623v-5.526l-2.565-.577-2.44 4.978 2.23 1.748zm11.863.694l3.529-2.766-4.4.987.87 1.78zm-15.328.083l1.759-.394-1.131-.888-.628 1.282zm-4.485 1.006l2.779-.623 1.237-2.525-4.395-3.448-2.058 1.615 2.437 4.981zm10.725.394v-1.42l-1.407.316 1.407 1.104zm-16.962 1.005l4.869-1.092-2.167-4.427-2.702 2.118v3.401zm-6.925.31l5.557-4.36.001-6.988-5.558 11.347zm14.398.817l.783-1.599-1.41.317.627 1.282zm20.347.001l2.611-5.33-3.772 2.958 1.16 2.372zm-33.893.234l4.704-1.055V18.97l-4.704 3.69zm26.632.455l4.394-3.444-1.143-2.333-5.48 1.229v2.8l2.23 1.748zm-2.23 1.748l1.133-.887-1.132-.889v1.776zm-19.699.097l.001-1.975-4.399.987 4.398.988zm6.848 1.538l1.235-2.522-1.236-2.526-5.477 1.229-.001 2.588 5.479 1.23zm20.083.54l1.5-3.062-1.5-3.061-3.904 3.061 3.904 3.062zm-17.308.083l-.78-1.594-.627 1.278 1.407.316zm5.594 1.257l3.114-2.441v-3.923l-3.112-2.442-3.887.872-1.73 3.532 1.727 3.529 3.888.873zm-15.217.597V26.34l-4.704-1.057 4.704 3.691zm18.33.102v-1.419L27.37 28.76l1.406.316zm14.702 1.195l.002-12.592-3.085 6.297 3.083 6.295zm-20.316.067l1.133-.888-1.761-.396.628 1.284zm12.462.276l1.144-2.333-4.393-3.446-2.23 1.75v2.798l5.48 1.231zm6.623.244l-2.611-5.332-1.162 2.372 3.773 2.96zm-.853 1.052l-3.53-2.769-.871 1.78 4.4.99zm-26.878.258l2.168-4.427-4.87-1.094v3.4l2.702 2.121zm20.704 2.37l5.87-1.316-4.707-1.057-1.163 2.374zm-17.55.106l4.394-3.445-1.237-2.528-2.774-.623-2.44 4.981 2.057 1.615zm12.473 1.034l3.371-.756 1.5-3.064-4.87-1.094-.001 4.914zm-3.936.883l2.567-.576.002-5.528L26 29.833l-2.23 1.749 2.436 4.979zm-4.739 1.063l3.37-.756-2.165-4.426-3.906 3.063 2.701 2.119zm-11.023.061v-6.989l-5.555-4.36 5.555 11.35zm1.368 0l2.094-4.273-2.093-1.643-.001 5.917zm1.232.585l3.528-2.766-1.57-1.231-1.958 3.997zm.854 1.052l5.863-1.315-2.092-1.642-3.771 2.957zm14.874 2.483l.001-4.44-1.958.44 1.957 4zm1.369 0l2.612-5.333-2.611.586-.001 4.748zm-2.602.583l-2.093-4.276-2.61.585 4.703 3.691zm3.834.001l10.02-7.855-6.933 1.555-3.087 6.3zm-4.691 1.049L21.13 39.08l-6.928 1.554 12.48 2.804zm2.775 4.238a2.98 2.98 0 0 1-2.325-1.101 2.896 2.896 0 0 1-.646-1.801L13.788 41.92a2.97 2.97 0 0 1-2.662 1.63c-.91 0-1.757-.4-2.324-1.1a2.888 2.888 0 0 1 .454-4.092L3.608 26.82a3.02 3.02 0 0 1-.639.068c-.91 0-1.757-.4-2.322-1.098a2.893 2.893 0 0 1 .47-4.106 2.964 2.964 0 0 1 1.846-.635c.218 0 .435.023.648.07l5.653-11.54a2.867 2.867 0 0 1-1.082-2.595 2.89 2.89 0 0 1 1.1-1.958 2.97 2.97 0 0 1 1.85-.637c.91 0 1.758.4 2.325 1.1.13.16.244.34.34.534l12.697-2.848A2.88 2.88 0 0 1 27.61.913a2.97 2.97 0 0 1 1.85-.638c.91 0 1.758.401 2.325 1.101.705.87.843 2.063.363 3.066l10.185 7.992a2.97 2.97 0 0 1 1.831-.623c.911 0 1.758.401 2.325 1.1a2.893 2.893 0 0 1-.47 4.107 2.956 2.956 0 0 1-1.17.557l-.003 12.804c.647.15 1.227.51 1.64 1.022a2.891 2.891 0 0 1-.471 4.106 2.968 2.968 0 0 1-1.849.637 3.01 3.01 0 0 1-1.837-.623l-10.185 7.986a2.897 2.897 0 0 1-.835 3.531 2.97 2.97 0 0 1-1.85.638z"
mask="url(#b)"
/>
<path
fill="#43B02A"
d="M75.563 14.695c0-1.565-1.29-2.833-2.881-2.833-1.591 0-2.88 1.268-2.88 2.833 0 1.33.934 2.444 2.192 2.748v12.323c.027.477.243.716.675.743.458-.027.7-.266.7-.743V17.443c1.259-.304 2.194-1.417 2.194-2.748"
/>
</Fragment>
)
export default ({ width, height }: { width: number, height: number }) => (
<svg width={width} height={height}>
{inner}
</svg>
)

2
src/components/FeesField/GenericContainer.js

@ -6,7 +6,7 @@ import Box from 'components/base/Box'
import LabelWithExternalIcon from 'components/base/LabelWithExternalIcon'
import { translate } from 'react-i18next'
import { openURL } from 'helpers/linking'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import { track } from 'analytics/segment'
export default translate()(({ children, t }: { children: React$Node, t: * }) => (

2
src/components/ManagerPage/index.js

@ -3,7 +3,7 @@
import React, { PureComponent, Fragment } from 'react'
import invariant from 'invariant'
import { openURL } from 'helpers/linking'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import type { Device } from 'types/common'
import type { DeviceInfo } from 'helpers/devices/getDeviceInfo'

2
src/components/Onboarding/steps/Finish.js

@ -4,7 +4,7 @@ import React, { Component } from 'react'
import { openURL } from 'helpers/linking'
import styled from 'styled-components'
import { i } from 'helpers/staticPath'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import Box from 'components/base/Box'
import Button from 'components/base/Button'

4
src/components/Onboarding/steps/GenuineCheck/index.js

@ -5,7 +5,7 @@ import { openURL } from 'helpers/linking'
import { connect } from 'react-redux'
import styled from 'styled-components'
import { colors } from 'styles/theme'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import { updateGenuineCheck } from 'reducers/onboarding'
@ -144,7 +144,7 @@ class GenuineCheck extends PureComponent<StepProps, State> {
}
contactSupport = () => {
openURL(urls.genuineCheckContactSupport)
openURL(urls.contactSupport)
}
handlePrevStep = () => {

2
src/components/Onboarding/steps/NoDevice.js

@ -7,7 +7,7 @@ import { i } from 'helpers/staticPath'
import Box from 'components/base/Box'
import GrowScroll from 'components/base/GrowScroll'
import TrackPage from 'analytics/TrackPage'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import IconCart from 'icons/Cart'
import IconTruck from 'icons/Truck'
import IconInfoCircle from 'icons/InfoCircle'

2
src/components/SettingsPage/sections/About.js

@ -6,7 +6,7 @@ import { translate } from 'react-i18next'
import type { T } from 'types/common'
import TrackPage from 'analytics/TrackPage'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import IconLoader from 'icons/Loader'
import ReleaseNotesButton from '../ReleaseNotesButton'

2
src/components/SettingsPage/sections/Help.js

@ -6,7 +6,7 @@ import type { T } from 'types/common'
import TrackPage from 'analytics/TrackPage'
import IconHelp from 'icons/Help'
import resolveLogsDirectory from 'helpers/resolveLogsDirectory'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import ExportLogsBtn from 'components/ExportLogsBtn'
import CleanButton from '../CleanButton'

4
src/components/modals/Receive/index.js

@ -13,7 +13,7 @@ import type { Account } from '@ledgerhq/live-common/lib/types'
import { MODAL_RECEIVE } from 'config/constants'
import { openURL } from 'helpers/linking'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import type { T, Device } from 'types/common'
import type { StepProps as DefaultStepProps } from 'components/base/Stepper'
@ -133,7 +133,7 @@ class ReceiveModal extends PureComponent<Props, State> {
isAppOpened: false,
})
handleContactUs = () => {
openURL(urls.receiveFlowContactSupport)
openURL(urls.contactSupport)
}
handleReset = () => this.setState({ ...INITIAL_STATE })

2
src/components/modals/Send/fields/RecipientField.js

@ -4,7 +4,7 @@ import type { Account } from '@ledgerhq/live-common/lib/types'
import type { T } from 'types/common'
import type { WalletBridge } from 'bridge/types'
import { openURL } from 'helpers/linking'
import { urls } from 'config/support'
import { urls } from 'config/urls'
import Box from 'components/base/Box'
import LabelWithExternalIcon from 'components/base/LabelWithExternalIcon'
import RecipientAddress from 'components/RecipientAddress'

16
src/config/support.js → src/config/urls.js

@ -1,21 +1,27 @@
// @flow
export const urls = {
// Social
twitter: 'https://twitter.com/LedgerHQ',
github: 'https://github.com/LedgerHQ/ledger-live-desktop',
reddit: 'https://www.reddit.com/r/ledgerwallet/',
// Ledger support
faq: 'https://support.ledgerwallet.com/hc/en-us',
terms: 'https://www.ledgerwallet.com/terms',
noDeviceBuyNew: 'https://www.ledgerwallet.com/',
noDeviceTrackOrder: 'http://order.ledgerwallet.com/',
noDeviceLearnMore: 'https://www.ledgerwallet.com/',
managerHelpRequest: 'https://support.ledgerwallet.com/hc/en-us/articles/360006523674 ',
genuineCheckContactSupport:
'https://support.ledgerwallet.com/hc/en-us/requests/new?ticket_form_id=248165',
contactSupport: 'https://support.ledgerwallet.com/hc/en-us/requests/new?ticket_form_id=248165',
feesMoreInfo: 'https://support.ledgerwallet.com/hc/en-us/articles/360006535873',
recipientAddressInfo: 'https://support.ledgerwallet.com/hc/en-us/articles/360006433934',
// should join and generalize naming for the same urls once defined
receiveFlowContactSupport:
'https://support.ledgerwallet.com/hc/en-us/requests/new?ticket_form_id=248165',
privacyPolicy: 'https://www.ledgerwallet.com/privacy-policy',
// Exchanges
coinbase: 'https://www.coinhouse.com/r/157530',
changelly: 'https://changelly.com/?ref_id=aac789605a01',
coinmama: 'http://go.coinmama.com/visit/?bta=51801&nci=5343',
simplex: 'https://www.simplex.com/',
paybis: 'https://paybis.com/',
}

2
static/i18n/en/app.yml

@ -152,6 +152,8 @@ exchange:
coinhouse: 'Coinhouse is a trusted platform for individuals and institutional investors looking to analyze, acquire, sell and securely store crypto assets.'
changelly: 'Changelly is a popular instant crypto asset exchange with 100+ coins and tokens listed.'
coinmama: 'Coinmama is a financial service that makes it fast, safe and fun to buy digital assets, anywhere in the world.'
simplex: 'Simplex is a EU licensed financial institution, providing a fraudless credit card payment solution.'
paybis: 'it is safe and easy to Buy Bitcoin with credit card from PayBis. Service operates in US, Canada, Germany, Russia and Saudi Arabia.'
genuinecheck:
modal:
title: Genuine check

Loading…
Cancel
Save