Skip to content

Commit 2c4494b

Browse files
committed
review: apply suggestions
1 parent 836b537 commit 2c4494b

14 files changed

+43
-45
lines changed

locale/da/texts.po

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ msgstr "[Sidste] dddd [•] HH:mm"
6161
msgid "DD MMM YYYY [•] HH:mm"
6262
msgstr "DD MMM YYYY [•] HH:mm"
6363

64-
#: src/utils.js:159
64+
#: src/utils.js:160
6565
msgid "Invalid address"
6666
msgstr "Ugyldig adresse"
6767

@@ -1232,9 +1232,3 @@ msgstr ""
12321232
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
12331233
msgid "Register new"
12341234
msgstr ""
1235-
1236-
#~ msgid "TOKENS"
1237-
#~ msgstr "TOKENS"
1238-
1239-
#~ msgid "I understand the risks of using a mobile wallet"
1240-
#~ msgstr "Jeg forstår risikoen ved at bruge en mobil wallet"

locale/pt-br/texts.po

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ msgstr "[Última] dddd [•] HH:mm"
6161
msgid "DD MMM YYYY [•] HH:mm"
6262
msgstr "DD MMM YYYY [•] HH:mm"
6363

64-
#: src/utils.js:159
64+
#: src/utils.js:160
6565
msgid "Invalid address"
6666
msgstr "Endereço inválido"
6767

@@ -1268,21 +1268,3 @@ msgstr "Você pode acompanhar os Nano Contracts registrados nesta tela."
12681268
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
12691269
msgid "Register new"
12701270
msgstr "Registrar Nano Contract"
1271-
1272-
#~ msgid "Learn More."
1273-
#~ msgstr "Saiba mais"
1274-
1275-
#~ msgid "TOKENS"
1276-
#~ msgstr "TOKENS"
1277-
1278-
#~ msgid "There has been an error upgrading your wallet."
1279-
#~ msgstr "Ocorreu um erro ao atualizar sua wallet."
1280-
1281-
#~ msgid "Please reset it and restore it with your seed."
1282-
#~ msgstr "Por favor resete sua wallet e restaure utilizando sua seed."
1283-
1284-
#~ msgid "Upgrading your wallet, please hang on."
1285-
#~ msgstr "Atualizando sua wallet, por favor aguarde."
1286-
1287-
#~ msgid "I understand the risks of using a mobile wallet"
1288-
#~ msgstr "Eu entendo os riscos de usar uma wallet de celular"

locale/ru-ru/texts.po

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ msgstr "[Последний] dddd [•] HH:mm"
6262
msgid "DD MMM YYYY [•] HH:mm"
6363
msgstr "DD MMM YYYY [•] HH:mm"
6464

65-
#: src/utils.js:159
65+
#: src/utils.js:160
6666
msgid "Invalid address"
6767
msgstr "Неправильный адрес"
6868

@@ -1221,9 +1221,3 @@ msgstr ""
12211221
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
12221222
msgid "Register new"
12231223
msgstr ""
1224-
1225-
#~ msgid "TOKENS"
1226-
#~ msgstr "ТОКЕНЫ"
1227-
1228-
#~ msgid "I understand the risks of using a mobile wallet"
1229-
#~ msgstr "Я осознаю риски использования мобильного кошелька"

locale/texts.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ msgstr ""
5252
msgid "DD MMM YYYY [•] HH:mm"
5353
msgstr ""
5454

55-
#: src/utils.js:159
55+
#: src/utils.js:160
5656
msgid "Invalid address"
5757
msgstr ""
5858

src/components/EditInfoContainer.component.js renamed to src/components/EditInfoContainer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Copyright (c) Hathor Labs and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
18
import React from 'react';
29
import {
310
StyleSheet,
@@ -6,7 +13,7 @@ import {
613
} from 'react-native';
714
import { COLORS } from '../styles/themes';
815

9-
import { PenIcon } from './Icon/Pen.icon';
16+
import { PenIcon } from './Icons/Pen.icon';
1017

1118
export const EditInfoContainer = ({ center, onPress, children }) => (
1219
<TouchableOpacity

src/components/Icons/NanoContract.icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Svg, { Path } from 'react-native-svg'
1010
import { COLORS } from '../../styles/themes';
1111
import { BaseIcon } from './Base.icon';
1212
import { DEFAULT_ICON_SIZE } from './constants';
13+
import { getScale, getViewBox } from './helper';
1314

1415
/**
1516
* @param {object} props

src/components/Icons/Oracle.icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Svg, { Path } from 'react-native-svg'
1010
import { COLORS } from '../../styles/themes';
1111
import { BaseIcon } from './Base.icon';
1212
import { DEFAULT_ICON_SIZE } from './constants';
13+
import { getScale, getViewBox } from './helper';
1314

1415
/**
1516
* @param {object} props

src/components/Icons/RandomTx.icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Svg, { Path } from 'react-native-svg'
1010
import { COLORS } from '../../styles/themes';
1111
import { BaseIcon } from './Base.icon';
1212
import { DEFAULT_ICON_SIZE } from './constants';
13+
import { getScale, getViewBox } from './helper';
1314

1415
/**
1516
* @param {object} props

src/components/Icons/Registered.icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Svg, { Path } from 'react-native-svg'
1010
import { COLORS } from '../../styles/themes';
1111
import { BaseIcon } from './Base.icon';
1212
import { DEFAULT_ICON_SIZE } from './constants';
13+
import { getScale, getViewBox } from './helper';
1314

1415
/**
1516
* @param {object} props

src/components/Icons/Wallet.icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Svg, { Path } from 'react-native-svg'
1010
import { COLORS } from '../../styles/themes';
1111
import { BaseIcon } from './Base.icon';
1212
import { DEFAULT_ICON_SIZE } from './constants';
13+
import { getScale, getViewBox } from './helper';
1314

1415
/**
1516
* @param {object} props

src/components/ModalBase.component.js renamed to src/components/ModalBase.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import React, { ReactNode } from 'react';
8+
import React from 'react';
99
import {
1010
StyleSheet,
1111
View,
1212
Text,
13-
StyleProp,
14-
ViewStyle
1513
} from 'react-native';
1614
import Modal from 'react-native-modal';
1715

@@ -30,7 +28,6 @@ const ModalBase = ({ styleModal, styleWrapper, show, onDismiss, children }) => {
3028
const button = hasChildren && React.Children.toArray(children).find(
3129
(child) => child.type.displayName === Button.displayName
3230
);
33-
3431
const discreteButton = hasChildren && React.Children.toArray(children).find(
3532
(child) => child.type.displayName === DiscreteButton.displayName
3633
);
@@ -70,11 +67,9 @@ const Title = ({ children }) => (
7067
Title.displayName = 'ModalBaseTitle';
7168

7269
/**
73-
* @typedef {Object} Properties p
74-
* @property {ReactNode} p.children
75-
* @property {StyleProp<ViewStyle>} p.style
76-
*
77-
* @param {Properties}
70+
* @param {Object} props
71+
* @property {ReactNode} props.children
72+
* @property {StyleProp<ViewStyle>} props.style
7873
*/
7974
const Body = ({ style, children }) => (
8075
<View style={style}>

src/components/TextLabel.component.js renamed to src/components/TextLabel.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Copyright (c) Hathor Labs and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
18
import React from 'react';
29
import {
310
StyleSheet,

src/components/TextValue.component.js renamed to src/components/TextValue.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Copyright (c) Hathor Labs and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
18
import React from 'react';
29
import {
310
StyleSheet,

src/utils.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,11 @@ export const getNanoContractFeatureToggle = (state) => (
405405
state.featureToggles[NANO_CONTRACT_FEATURE_TOGGLE]
406406
);
407407

408-
export const getTimestampFormat = (timestamp) => moment.unix(timestamp).format('DD MMM YYYY [•] HH:mm')
408+
/**
409+
* Get timestamp in specific format.
410+
*
411+
* @param {number} timestamp
412+
*
413+
* @returns {string} formatted timestamp
414+
*/
415+
export const getTimestampFormat = (timestamp) => moment.unix(timestamp).format(t`DD MMM YYYY [•] HH:mm`)

0 commit comments

Comments
 (0)