Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #106 from rsksmart/imstar15-add_icons_of_passcode_…
Browse files Browse the repository at this point in the history
…modal

Add icons of passcode modal. fix 38, fix #90
  • Loading branch information
imstar15 committed Apr 30, 2020
2 parents 1b636cd + 080a11d commit 7ef6995
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file added src/assets/images/icon/passcode.delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/icon/passcode.reset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/references.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ images.receive = require('./images/icon/receive.png');
images.swap = require('./images/icon/swap.png');
images.scan = require('./images/icon/scan.png');
images.scanAddress = require('./images/icon/address.png');
images.passcodeDelete = require('./images/icon/passcode.delete.png');
images.passcodeReset = require('./images/icon/passcode.reset.png');

export default { images };
7 changes: 4 additions & 3 deletions src/components/common/passcode/passcode.modal.base.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React, { PureComponent } from 'react';
import {
View, Text, StyleSheet, TouchableOpacity, Modal,
View, Text, StyleSheet, TouchableOpacity, Modal, Image,
} from 'react-native';
import * as Animatable from 'react-native-animatable';

import PropTypes from 'prop-types';
import color from '../../../assets/styles/color.ts';
import Loc from '../misc/loc';
import references from '../../../assets/references';

const buttonSize = 75;
const dotSize = 13;
Expand Down Expand Up @@ -187,12 +188,12 @@ class PasscodeModalBase extends PureComponent {
)}
{showCancel && (
<TouchableOpacity style={[styles.operationButton, styles.leftBottomButton]} onPress={cancelBtnOnPress}>
<Loc style={[styles.buttonText]} text="button.cancel" />
<Image source={references.images.passcodeReset} />
</TouchableOpacity>
)}
{this.renderButtons()}
<TouchableOpacity style={[styles.operationButton, styles.deleteButton]} onPress={this.onDeletePressed}>
<Loc style={[styles.buttonText]} text="button.Delete" />
<Image source={references.images.passcodeDelete} />
</TouchableOpacity>
</View>
</View>
Expand Down

0 comments on commit 7ef6995

Please sign in to comment.