pancake-frontend
pancake-frontend copied to clipboard
perf: Use noop instead of new function
PR-Codex overview
This PR focuses on replacing empty function implementations with noop
from lodash
across various components, enhancing code readability and maintainability.
Detailed summary
- Replaced empty
onClick
handlers withnoop
inCakeStaking
. - Updated
updateTotalApr
inMyPositionsContext
to usenoop
. - Changed
prompt
,confirm
, andonConfirm
handlers inDialogContext
tonoop
. - Updated
onLockedClick
inVaultStakeActions
andStaked
to usenoop
. - Replaced
onDismiss
andopenCalculator
inLockedModalBody
withnoop
.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}