From 919612bc0d737e4053e1183e65a6486c8129650d Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Fri, 1 Jun 2018 17:59:24 -0400 Subject: [PATCH] Fixing translation behavior of download link labels --- src/components/App/index.js | 4 ++-- src/components/Form/__snapshots__/test.js.snap | 8 ++++++-- src/components/Form/index.js | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/App/index.js b/src/components/App/index.js index 3c59572..e703dea 100644 --- a/src/components/App/index.js +++ b/src/components/App/index.js @@ -42,7 +42,7 @@ class App extends React.PureComponent { this.setState({ svgUrl: { url: URL.createObjectURL(blob), - label: this.props.t('Download SVG'), + label: 'Download SVG', filename: 'image.svg', type } @@ -61,7 +61,7 @@ class App extends React.PureComponent { this.setState({ pngUrl: { url: URL.createObjectURL(blob), - label: this.props.t('Download PNG'), + label: 'Download PNG', filename: 'image.png', type } diff --git a/src/components/Form/__snapshots__/test.js.snap b/src/components/Form/__snapshots__/test.js.snap index 23e9087..2758260 100644 --- a/src/components/Form/__snapshots__/test.js.snap +++ b/src/components/Form/__snapshots__/test.js.snap @@ -107,7 +107,9 @@ exports[`Form rendering with download URLs 1`] = ` type="image/svg+xml" > - Download SVG + + Download SVG +
  • - Download PNG + + Download PNG +
  • diff --git a/src/components/Form/index.js b/src/components/Form/index.js index 3727ea2..5bbcded 100644 --- a/src/components/Form/index.js +++ b/src/components/Form/index.js @@ -66,7 +66,7 @@ class Form extends React.PureComponent { return downloadUrls.map(({ url, filename, type, label }, i) =>
  • - { label } + { label }
  • ); }