Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Refactor RepoClaimType
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Giacon <[email protected]>
  • Loading branch information
alfetopito and fedgiac authored Jan 3, 2022
1 parent 3b5751b commit f3fff57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/custom/state/claim/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export const enum ClaimType {
Advisor, // free, with vesting, only on mainnet
}

// TODO: find a way (if possible) to get this from the ClaimType enum
type RepoClaimType = 'Airdrop' | 'GnoOption' | 'UserOption' | 'Investor' | 'Team' | 'Advisor'
type RepoClaimType = keyof typeof ClaimType

// TODO: also, is there a smarter way of doing this?
export const REVERSE_CLAIM_TYPE_MAPPING: Record<RepoClaimType, ClaimType> = {
Expand Down

0 comments on commit f3fff57

Please sign in to comment.