Skip to content

Commit

Permalink
Add bitcoin icon in the input
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Feb 23, 2024
1 parent e207327 commit 9e5ce86
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion views/Settings/CurrencyConverter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import SettingsStore, { CURRENCY_KEYS } from '../../stores/SettingsStore';
import Add from '../../assets/images/SVG/Add.svg';
import Edit from '../../assets/images/SVG/Pen.svg';
import DragDots from '../../assets/images/SVG/DragDots.svg';
import BitcoinIcon from '../../assets/images/SVG/bitcoin-icon.svg';

interface CurrencyConverterProps {
navigation: any;
Expand Down Expand Up @@ -518,10 +519,31 @@ export default class CurrencyConverter extends React.Component<
: null
]}
>
{['BTC', 'sats'].includes(
item
) && (
<View
style={{
position:
'absolute',
left: 17,
zIndex: 1
}}
>
<BitcoinIcon
width={20}
height={20}
/>
</View>
)}

<TextInput
suffix={`${item} ${getFlagEmoji(
item
)}`}
style={{
flex: 1
}}
right={72}
placeholder={localeString(
'views.Settings.CurrencyConverter.enterAmount'
Expand Down Expand Up @@ -589,7 +611,9 @@ const styles = StyleSheet.create({
alignItems: 'center'
},
inputBox: {
flex: 1
flex: 1,
flexDirection: 'row-reverse',
alignItems: 'center'
},
deleteIcon: {
marginRight: 16,
Expand Down

0 comments on commit 9e5ce86

Please sign in to comment.