Skip to content

Commit e7fb586

Browse files
committed
fix: design overhaul
1 parent b846391 commit e7fb586

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

apps/namadillo/src/App/Transfer/AddressDropdown.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)