File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
apps/namadillo/src/App/Transfer Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ type AddressDropdownProps = {
2525 selectedAddress ?: string ;
2626 className ?: string ;
2727 isShieldingTxn ?: boolean ;
28+ showAddress ?: boolean ;
2829 onClick ?: ( ) => void ;
2930 onSelectAddress ?: ( address : string ) => void ;
3031} ;
@@ -35,6 +36,7 @@ export const AddressDropdown = ({
3536 isShieldingTxn,
3637 selectedAddress,
3738 className = "" ,
39+ showAddress = false ,
3840 onClick,
3941 onSelectAddress,
4042} : AddressDropdownProps ) : JSX . Element => {
@@ -106,7 +108,7 @@ export const AddressDropdown = ({
106108 addressOptions . push ( {
107109 id : "keplr" ,
108110 label : "Keplr" ,
109- address : keplrAddress ,
111+ address : "Keplr" ,
110112 walletType : "keplr" ,
111113 iconUrl : wallets . keplr . iconUrl ,
112114 } ) ;
@@ -207,11 +209,18 @@ export const AddressDropdown = ({
207209 ) }
208210 onClick = { handleToggle }
209211 >
210- < img
211- src = { selectedOption ?. iconUrl || namadaTransparentIcon }
212- alt = { ( selectedOption ?. walletType || "Namada" ) + " Logo" }
213- className = "w-7 select-none"
214- />
212+ < div className = "flex items-center gap-2.5 mt-2" >
213+ < img
214+ src = { selectedOption ?. iconUrl || namadaTransparentIcon }
215+ alt = { ( selectedOption ?. walletType || "Namada" ) + " Logo" }
216+ className = "w-7 select-none"
217+ />
218+ { showAddress && selectedOption && (
219+ < div className = "text-xs text-neutral-400" >
220+ { shortenAddress ( selectedOption . address , 10 , 10 ) }
221+ </ div >
222+ ) }
223+ </ div >
215224 { shouldShowDropdown && (
216225 < GoChevronDown
217226 className = { clsx (
You can’t perform that action at this time.
0 commit comments