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 506299b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
18 changes: 6 additions & 12 deletions assets/images/SVG/bitcoin-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 22 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,28 @@ export default class CurrencyConverter extends React.Component<
: null
]}
>
{['BTC', 'sats'].includes(
item
) && (
<View
style={{
position:
'absolute',
left: 16,
zIndex: 1
}}
>
<BitcoinIcon />
</View>
)}

<TextInput
suffix={`${item} ${getFlagEmoji(
item
)}`}
style={{
flex: 1
}}
right={72}
placeholder={localeString(
'views.Settings.CurrencyConverter.enterAmount'
Expand Down Expand Up @@ -589,7 +608,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 506299b

Please sign in to comment.