Skip to content

Commit

Permalink
update pool details page path
Browse files Browse the repository at this point in the history
  • Loading branch information
shan57blocks authored and yangshan committed Oct 27, 2024
1 parent fd17723 commit 000fcf2
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 17 deletions.
7 changes: 7 additions & 0 deletions packages/huma-shared/src/v2/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { IdentityVerificationStatusV2 } from '../../services'

export enum FirstLossCoverIndex {
borrower = 0,
admin = 2,
}

export interface CloseModalOptions {
identityStatus?: IdentityVerificationStatusV2
isSuccess?: boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
CampaignService,
CHAIN_TYPE,
checkIsDev,
CloseModalOptions,
IdentityServiceV2,
IdentityVerificationStatusV2,
KYCCopy,
Expand All @@ -22,7 +23,7 @@ import { BottomButton } from '../../BottomButton'
import { ApproveLenderImg } from '../../images'
import { LoadingModal } from '../../LoadingModal'
import { WrapperModal } from '../../WrapperModal'
import { Campaign, CloseModalOptions } from '../supplyV2'
import { Campaign } from '../supplyV2'

type LoadingType = 'verificationStatus' | 'startKYC' | 'approveLender'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { formatMoney, SolanaPoolInfo, timeUtil } from '@huma-finance/shared'
import {
CloseModalOptions,
formatMoney,
SolanaPoolInfo,
timeUtil,
} from '@huma-finance/shared'
import { SolanaPoolState } from '@huma-finance/web-shared'
import dayjs from 'dayjs'
import React, { useCallback } from 'react'
import { useDispatch } from 'react-redux'
import { Campaign, CloseModalOptions } from '.'
import { Campaign } from '.'
import { useAppSelector } from '../../../hooks/useRedux'
import { setStep } from '../../../store/widgets.reducers'
import { selectWidgetState } from '../../../store/widgets.selectors'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
CampaignService,
CHAIN_TYPE,
checkIsDev,
CloseModalOptions,
formatNumber,
isEmpty,
} from '@huma-finance/shared'
Expand All @@ -16,7 +17,6 @@ import { useResetAtom } from 'jotai/utils'
import React, { useCallback, useEffect, useState } from 'react'
import { useDispatch } from 'react-redux'

import { CloseModalOptions } from '.'
import { resetState, setError } from '../../../store/widgets.reducers'
import { BottomButton } from '../../BottomButton'
import { CongratulationsIcon, HumaPointsIcon, RibbonIcon } from '../../icons'
Expand Down
10 changes: 5 additions & 5 deletions packages/huma-widget/src/components/Lend/solanaSupply/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { SolanaPoolInfo, TrancheType } from '@huma-finance/shared'
import {
CloseModalOptions,
SolanaPoolInfo,
TrancheType,
} from '@huma-finance/shared'
import {
SolanaPoolState,
useLenderAccounts,
Expand All @@ -25,10 +29,6 @@ export interface Campaign {
campaignGroupId: string
}

export interface CloseModalOptions {
isSuccess?: boolean
}

/**
* Lend pool supply props
* @typedef {Object} SolanaLendSupplyProps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { CHAIN_TYPE, PoolInfoV2, TrancheType } from '@huma-finance/shared'
import {
CHAIN_TYPE,
CloseModalOptions,
PoolInfoV2,
TrancheType,
} from '@huma-finance/shared'
import React from 'react'

import { Campaign, CloseModalOptions } from '.'
import { Campaign } from '.'
import { PersonaEvaluation } from '../components/PersonaEvaluation'
import { SecuritizeEvaluation } from '../components/SecuritizeEvaluation'

Expand Down
7 changes: 1 addition & 6 deletions packages/huma-widget/src/components/Lend/supplyV2/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
IdentityVerificationStatusV2,
CloseModalOptions,
openInNewTab,
POOL_NAME,
TrancheType,
Expand Down Expand Up @@ -34,11 +34,6 @@ export interface Campaign {
campaignGroupId: string
}

export interface CloseModalOptions {
identityStatus?: IdentityVerificationStatusV2
isSuccess?: boolean
}

/**
* Lend pool supply props
* @typedef {Object} LendSupplyPropsV2
Expand Down

0 comments on commit 000fcf2

Please sign in to comment.