pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

perf: Use noop instead of new function

Open memoyil opened this issue 8 months ago • 4 comments


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 with noop in CakeStaking.
  • Updated updateTotalApr in MyPositionsContext to use noop.
  • Changed prompt, confirm, and onConfirm handlers in DialogContext to noop.
  • Updated onLockedClick in VaultStakeActions and Staked to use noop.
  • Replaced onDismiss and openCalculator in LockedModalBody with noop.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jun 18 '24 11:06 memoyil