Skip to content

Commit 090211f

Browse files
committed
review: apply fix suggestions
1 parent d3ce910 commit 090211f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

locale/pt-br/texts.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ msgstr "Você pode acompanhar os Nano Contracts registrados nesta tela."
12631263

12641264
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
12651265
msgid "Register new"
1266-
msgstr "Registrar um token"
1266+
msgstr "Registrar Nano Contract"
12671267

12681268
#~ msgid "Learn More."
12691269
#~ msgstr "Saiba mais"

locale/ru-ru/texts.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ msgstr ""
12161216

12171217
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
12181218
msgid "Register new"
1219-
msgstr "Зарегистрировать токен"
1219+
msgstr ""
12201220

12211221
#~ msgid "TOKENS"
12221222
#~ msgstr "ТОКЕНЫ"

src/components/NanoContract/NanoContractsListItem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import { NanoContractIcon } from './NanoContractIcon.icon';
1818
*
1919
* @param {Object} ncItem
2020
* @property {Object} ncItem.item registered Nano Contract data
21-
* @property {number} ncItem.index position in the list
21+
* @property {() => {}} ncItem.onPress A void function to be called when item is pressed.
2222
*/
2323
export const NanoContractsListItem = ({ item, onPress }) => (
2424
<Wrapper onPress={onPress}>
2525
<Icon />
2626
<ContentWrapper nc={item} />
27-
<ArrowLeft />
27+
<ArrowRight />
2828
</Wrapper>
2929
);
3030

@@ -58,7 +58,7 @@ const ContentWrapper = ({ nc }) => (
5858
</View>
5959
);
6060

61-
const ArrowLeft = () => (
61+
const ArrowRight = () => (
6262
<View>
6363
<Image source={chevronRight} width={24} height={24} />
6464
</View>

src/screens/Dashboard.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ const listOption = {
7676

7777
/**
7878
* @param {listOption} currList the list component selected to be rendered.
79-
* @returns {boolean} `true` if tokens list is selected, `false` otherwier.
79+
* @returns {boolean} `true` if tokens list is selected, `false` otherwise.
8080
*/
8181
const isTokensSelected = (currList) => currList === listOption.tokens;
8282

8383
/**
8484
* @param {listOption} currList the list component selected to be rendered.
85-
* @returns {boolean} `true` if nanoContracts list is selected, `false` otherwier.
85+
* @returns {boolean} `true` if nanoContracts list is selected, `false` otherwise.
8686
*/
8787
const isNanoContractsSelected = (currList) => currList === listOption.nanoContracts;
8888

@@ -93,7 +93,7 @@ export const Dashboard = () => {
9393
selectedToken,
9494
tokensMetadata,
9595
} = useSelector(getTokensState);
96-
const isNanoContratEnabled = useSelector(getNanoContractFeatureToggle);
96+
const isNanoContractEnabled = useSelector(getNanoContractFeatureToggle);
9797

9898
const [currList, selectList] = useState(listOption.tokens);
9999
const navigation = useNavigation();
@@ -122,7 +122,7 @@ export const Dashboard = () => {
122122
<AskForPushNotification navigation={navigation} />
123123
<AskForPushNotificationRefresh />
124124
{ // Only show the toggle button when Nano Contract is enabled to the wallet
125-
isNanoContratEnabled
125+
isNanoContractEnabled
126126
&& (
127127
<DashBoardHeader>
128128
<TwoOptionsToggle
@@ -150,7 +150,7 @@ export const Dashboard = () => {
150150
)
151151
}
152152
{ // Only show if Nano Contract is enabled in the wallet
153-
isNanoContratEnabled
153+
isNanoContractEnabled
154154
&& isNanoContractsSelected(currList)
155155
&& <NanoContractsList />
156156
}

0 commit comments

Comments
 (0)