From 1cbbe5f31fb7ba7acf208759387e210284870dba Mon Sep 17 00:00:00 2001 From: YaoiFangirl420 <48789208+YaoiFangirl420@users.noreply.github.com> Date: Thu, 4 Apr 2019 02:26:58 -0700 Subject: [PATCH] Add i18n and fix method declaration Add i18n entries for rotating images; fix the way `getName` is defined Signed-off-by: YaoiFangirl420 <48789208+YaoiFangirl420@users.noreply.github.com> --- src/components/views/elements/ImageView.js | 8 ++++---- src/i18n/strings/en_EN.json | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/views/elements/ImageView.js b/src/components/views/elements/ImageView.js index 83f07df34e..0eb0f75c1f 100644 --- a/src/components/views/elements/ImageView.js +++ b/src/components/views/elements/ImageView.js @@ -88,13 +88,13 @@ export default class ImageView extends React.Component { }); }; - getName = () => { + getName() { let name = this.props.name; if (name && this.props.link) { name = { name }; } return name; - }; + } rotateCounterClockwise = () => { const cur = this.state.rotationDegrees; @@ -196,10 +196,10 @@ export default class ImageView extends React.Component {