aplication and bvn list added

This commit was merged in pull request #13.
This commit is contained in:
victorAnumudu
2024-05-09 07:25:29 +01:00
parent 7cf4f9dbbe
commit 3839962e33
6 changed files with 470 additions and 170 deletions
+2 -1
View File
@@ -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 => {
+38 -33
View File
@@ -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
}
}