Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/UI/Collectibles/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ScrollView, RefreshControl, FlatList, StyleSheet, Text, View } from 'react-native';
import { Alert, ScrollView, RefreshControl, FlatList, StyleSheet, Text, View } from 'react-native';
import { colors, fontStyles } from '../../../styles/common';
import { strings } from '../../../../locales/i18n';
import ActionSheet from 'react-native-actionsheet';
Expand Down Expand Up @@ -110,6 +110,7 @@ export default class Collectibles extends Component {
removeCollectible = () => {
const { AssetsController } = Engine.context;
AssetsController.removeCollectible(this.collectibleToRemove.address, this.collectibleToRemove.tokenId);
Alert.alert(strings('wallet.collectible_removed_title'), strings('wallet.collectible_removed_desc'));
};

createActionSheetRef = ref => {
Expand Down
3 changes: 2 additions & 1 deletion app/components/UI/Tokens/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Image, TouchableOpacity, StyleSheet, Text, View } from 'react-native';
import { Alert, Image, TouchableOpacity, StyleSheet, Text, View } from 'react-native';
import TokenImage from '../TokenImage';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { colors, fontStyles } from '../../../styles/common';
Expand Down Expand Up @@ -185,6 +185,7 @@ export default class Tokens extends PureComponent {
removeToken = () => {
const { AssetsController } = Engine.context;
AssetsController.removeToken(this.tokenToRemove.address);
Alert.alert(strings('wallet.token_removed_title'), strings('wallet.token_removed_desc'));
};

createActionSheetRef = ref => {
Expand Down
4 changes: 4 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
"copy_address": "Copy",
"remove_token_title": "Do you want to remove this token?",
"remove_collectible_title": "Do you want to remove this collectible?",
"token_removed_title": "Token removed!",
"token_removed_desc": "If you change your mind, you can add it back by tapping on \"+ ADD TOKENS\"",
"collectible_removed_title": "Collectible removed!",
"collectible_removed_desc": "If you change your mind, you can add it back by tapping on \"+ ADD COLLECTIBLES\"",
"remove": "Remove",
"cancel": "Cancel"
},
Expand Down
4 changes: 4 additions & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
"copy_address": "Copiar",
"remove_token_title": "Deseas eliminar este token?",
"remove_collectible_title": "Deseas eliminar este coleccionable?",
"token_removed_title": "Token eliminado!",
"token_removed_desc": "Si cambias de opinión, puedes agregarlo nuevamente presionando en \"+ AGREGAR TOKENS\"",
"collectible_removed_title": "Coleccionable eliminado!",
"collectible_removed_desc": "Si cambias de opinión, puedes agregarlo nuevamente presionando en \"Agregar Coleccionable\"",
"remove": "Eliminar",
"cancel": "Cancelar"
},
Expand Down
61 changes: 36 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"ethjs-unit": "0.1.6",
"events": "3.0.0",
"fuse.js": "3.4.4",
"gaba": "1.0.0-beta.68",
"gaba": "1.0.0-beta.69",
"https-browserify": "0.0.1",
"jsc-android": "236355.1.1",
"multihashes": "0.4.14",
Expand Down