-
Notifications
You must be signed in to change notification settings - Fork 54
[Claim refactor] Table / InvestmentFlow / Status #2138
Conversation
@@ -0,0 +1,70 @@ | |||
import { Trans } from '@lingui/macro' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moves html code from index into this file, adds global claim state null checks
commented out is claimedAmount which is formatted incorrectly. fix incoming
@@ -0,0 +1,102 @@ | |||
import { ClaimType, useClaimState } from 'state/claim/hooks' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moves table html code from index into this file, adds global claim state null checks
commented out is type code which i will fix in another PR - should be sdk types
@@ -0,0 +1,216 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moves investment html code from index into this file, adds global claim state null checks and approveState / approveCallback from claim
into this file as props
no internal changes
|
* hooks index: logic/sdk - set prices using Price SDK - useUserEnhancedClaimData sugar - cleanup / re-org * utils: mapTypeToPrice - maps claim types to their respective prices * types: EnhancedClaimData * Claim index: pass useEnhancedClaimData hook * ClaimsTable: pass new data and type * change back prices to previous * revert to keep base types same * fix broken claiming amount representation * remove unused map * map > switch - thanks @alfetopito * co-authored by @nenadV91
…-investment-status
Part 1 refactor of #2085
Just the components and some necessary props/data