Skip to content

Commit

Permalink
Add ETH to save button (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter authored Sep 16, 2023
1 parent c5c8f3b commit 57adf9f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function SaveButton({ currentCellOwnerAddress, error, sx }: SaveButtonProps) {
const { accountAddress } = useContext(AccountContext);
const [loading, setLoading] = useState<boolean>(false);

const cost = useMemo(() => (costEth > 0 ? ` (${costEth})` : ""), [costEth]);
const cost = useMemo(
() => (costEth > 0 ? ` (${costEth}ETH)` : ""),
[costEth]
);

const onClick = useCallback(async () => {
if (transactions.length === 0) {
Expand Down Expand Up @@ -55,7 +58,7 @@ function SaveButton({ currentCellOwnerAddress, error, sx }: SaveButtonProps) {
<span>
<Button
sx={{
width: "221px",
width: "250px",
"& .content": {
backgroundColor: !!accountAddress ? "#FF4F0A" : undefined,
boxShadow: !!accountAddress
Expand Down

0 comments on commit 57adf9f

Please sign in to comment.