REF: WalletToImport to TS

This commit is contained in:
Daniel Padrino 2024-02-17 13:21:35 -03:00 committed by Overtorment
parent cfd0538a80
commit 5bc04e4bdb

View File

@ -1,10 +1,16 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types';
import { Text } from 'react-native-elements'; import { Text } from 'react-native-elements';
import { I18nManager, StyleSheet, TouchableOpacity, View } from 'react-native'; import { I18nManager, StyleSheet, TouchableOpacity, View } from 'react-native';
import { useTheme } from './themes'; 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 { colors } = useTheme();
const stylesHooks = StyleSheet.create({ 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; export default WalletToImport;