-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixing amount conversion and timeline stage (#1292)
- Loading branch information
1 parent
2f6b52f
commit c2408ca
Showing
4 changed files
with
178 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
apps/namadillo/src/App/NamadaTransfer/NamadaTransferTopHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import clsx from "clsx"; | ||
import arrowImage from "./assets/arrow.svg"; | ||
import shieldedAccountImage from "./assets/shielded-account.svg"; | ||
import transparentAccountImage from "./assets/transparent-account.svg"; | ||
|
||
type NamadaTransferTopHeaderProps = { | ||
isSourceShielded: boolean; | ||
isDestinationShielded?: boolean; | ||
}; | ||
|
||
export const NamadaTransferTopHeader = ({ | ||
isSourceShielded, | ||
isDestinationShielded, | ||
}: NamadaTransferTopHeaderProps): JSX.Element => { | ||
return ( | ||
<div className="grid grid-cols-[1fr_auto_1fr] items-center gap-3"> | ||
<img | ||
src={isSourceShielded ? shieldedAccountImage : transparentAccountImage} | ||
alt="" | ||
className="flex-1 h-[35px] w-[35px]" | ||
/> | ||
<img src={arrowImage} alt="" className="flex-1 w-[72px]" /> | ||
<img | ||
src={ | ||
isDestinationShielded ? shieldedAccountImage : transparentAccountImage | ||
} | ||
alt="" | ||
className={clsx( | ||
"flex-1 h-[35px] w-[35px]", | ||
isDestinationShielded === undefined && "opacity-15" | ||
)} | ||
/> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c2408ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://673f6e6e7660623bb7d7357e--namada-interface-dev.netlify.app