Description
Extracting out analytics related code from ApproveView/Approve into a separate hook.
After this task is completed #5574 ApproveView/Approve will be converted into a functional component. With about 740 lines of code the component is currently huge. Analytics related code is not directly related to the functionality of approving can be extracted out a separate hook thus reducing complexity of this component.
This can include following functions being moved to the hook:
- trackApproveEvent
- getAnalyticsParams
- setAnalyticsParams
- getGasAnalyticsParams
- create new functions: trackApprovalCompleted, trackApprovalCancelled, ...
Acceptance Criteria
- Approve functionality continue to work as before and analytics work as expected.
References
https://docs.google.com/document/d/19xKY4e07UThOa1jsDQA8pjsNLUBRn39EdUbaFpz3OR0/edit?usp=sharing
Description
Extracting out analytics related code from ApproveView/Approve into a separate hook.
After this task is completed #5574 ApproveView/Approve will be converted into a functional component. With about 740 lines of code the component is currently huge. Analytics related code is not directly related to the functionality of approving can be extracted out a separate hook thus reducing complexity of this component.
This can include following functions being moved to the hook:
Acceptance Criteria
References
https://docs.google.com/document/d/19xKY4e07UThOa1jsDQA8pjsNLUBRn39EdUbaFpz3OR0/edit?usp=sharing