mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
REF: WalletToImport to TS
This commit is contained in:
parent
cfd0538a80
commit
5bc04e4bdb
@ -1,10 +1,16 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Text } from 'react-native-elements';
|
||||
import { I18nManager, StyleSheet, TouchableOpacity, View } from 'react-native';
|
||||
import { useTheme } from './themes';
|
||||
|
||||
const WalletToImport = ({ title, subtitle, active, onPress }) => {
|
||||
interface WalletToImportProp {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
active: boolean;
|
||||
onPress: () => void;
|
||||
}
|
||||
|
||||
const WalletToImport: React.FC<WalletToImportProp> = ({ title, subtitle, active, onPress }) => {
|
||||
const { colors } = useTheme();
|
||||
|
||||
const stylesHooks = StyleSheet.create({
|
||||
@ -55,11 +61,4 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
WalletToImport.propTypes = {
|
||||
title: PropTypes.string,
|
||||
subtitle: PropTypes.string,
|
||||
active: PropTypes.bool,
|
||||
onPress: PropTypes.func,
|
||||
};
|
||||
|
||||
export default WalletToImport;
|
Loading…
Reference in New Issue
Block a user