pancake-frontend
pancake-frontend copied to clipboard
fix: Risk fail tooltip not visible when it gets error
Fail tooltip at first not visible when it gets error
PR-Codex overview
The focus of this PR is to optimize the retry functionality in the AccessRisk
component by adding a new prop isFetching
to RetryRisk
.
Detailed summary
- Added
isFetching
prop toRetryRisk
component - Refactored
RetryRisk
component logic for tooltip display - Updated
onClick
handling inRetryRisk
- Modified
useEffect
inAccessRiskComponent
to handleisFetching
- Replaced
useTokenRisk
withisFetching
inAccessRiskComponent
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}