Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Jan 24, 2025
1 parent db999a5 commit 8e4dc30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/earn/components/DepositBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEarnContext } from './EarnProvider';
export function DepositBalance({ className }: DepositBalanceReact) {
const { convertedBalance, setDepositAmount } = useEarnContext();

const handleUseMaxPress = useCallback(() => {
const handleMaxPress = useCallback(() => {
if (convertedBalance) {
setDepositAmount(convertedBalance);
}
Expand All @@ -17,7 +17,7 @@ export function DepositBalance({ className }: DepositBalanceReact) {
className={className}
title={`${convertedBalance} USDC`}
subtitle="Available to deposit"
onActionPress={handleUseMaxPress}
onActionPress={handleMaxPress}
showAction={!!convertedBalance}
/>
);
Expand Down
4 changes: 2 additions & 2 deletions src/earn/components/WithdrawBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEarnContext } from './EarnProvider';
export function WithdrawBalance({ className }: WithdrawBalanceReact) {
const { depositedAmount, setWithdrawAmount } = useEarnContext();

const handleUseMaxPress = useCallback(() => {
const handleMaxPress = useCallback(() => {
if (depositedAmount) {
setWithdrawAmount(depositedAmount);
}
Expand All @@ -17,7 +17,7 @@ export function WithdrawBalance({ className }: WithdrawBalanceReact) {
className={className}
title={`${depositedAmount} USDC`}
subtitle="Available to withdraw"
onActionPress={handleUseMaxPress}
onActionPress={handleMaxPress}
showAction={!!depositedAmount}
/>
);
Expand Down

0 comments on commit 8e4dc30

Please sign in to comment.