aplication and bvn list added
This commit was merged in pull request #13.
This commit is contained in:
@@ -19,9 +19,10 @@ import {
|
||||
import { ToolbarWrapper } from '../../../_digifi/layout/components/toolbar';
|
||||
import { Content } from '../../../_digifi/layout/components/content';
|
||||
import { getUserDashDetails } from '../../modules/auth/core/_requests';
|
||||
import { DashDataProps } from './model';
|
||||
|
||||
const DashboardPage: FC = () => {
|
||||
const [dashDetails, setDashDetails] = useState({loading:true, data:{}})
|
||||
const [dashDetails, setDashDetails] = useState<DashDataProps>({loading:true, data:{}})
|
||||
|
||||
useEffect(()=>{
|
||||
getUserDashDetails().then(res => {
|
||||
|
||||
@@ -1,38 +1,43 @@
|
||||
export type dashDataProps = {
|
||||
export type RecentApplicationsProps = {
|
||||
firstname?: string
|
||||
lastname?: string
|
||||
uid?: string
|
||||
loan_amount?: string
|
||||
payment_month?: string
|
||||
sales_agent?: string
|
||||
gender?: string | null
|
||||
marital_status?: string
|
||||
email?: string
|
||||
address?: string
|
||||
state?: string
|
||||
country?: string
|
||||
status?: string
|
||||
added?: string
|
||||
updated?: string
|
||||
}[]
|
||||
|
||||
export type RecentBVNProps = {
|
||||
id?: string
|
||||
uid?: string
|
||||
bvn?: string
|
||||
status?: string
|
||||
added?: string
|
||||
updated?: string
|
||||
firstname?: string | null
|
||||
lastname?: string | null
|
||||
middlename?: string | null
|
||||
gender?: string | null
|
||||
birthdate?: string | null
|
||||
phone?: string | null
|
||||
nationality?: string | null
|
||||
}[]
|
||||
|
||||
|
||||
export type DashDataProps = {
|
||||
loading: boolean,
|
||||
data: {
|
||||
call_return?: string
|
||||
recent_applications? : {
|
||||
firstname?: string
|
||||
lastname?: string
|
||||
uid?: string
|
||||
loan_amount?: string
|
||||
payment_month?: string
|
||||
sales_agent?: string
|
||||
gender?: string | null
|
||||
marital_status?: string
|
||||
email?: string
|
||||
address?: string
|
||||
state?: string
|
||||
country?: string
|
||||
status?: string
|
||||
added?: string
|
||||
updated?: string
|
||||
}[]
|
||||
recent_bvn?: {
|
||||
id?: string
|
||||
uid?: string
|
||||
bvn?: string
|
||||
status?: string
|
||||
added?: string
|
||||
updated?: string
|
||||
firstname?: string | null
|
||||
lastname?: string | null
|
||||
middlename?: string | null
|
||||
gender?: string | null
|
||||
birthdate?: string | null
|
||||
phone?: string | null
|
||||
nationality?: string | null
|
||||
}[]
|
||||
recent_applications? : RecentApplicationsProps
|
||||
recent_bvn?: RecentBVNProps
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user