initial commit

This commit is contained in:
victorAnumudu
2024-05-08 18:54:58 +01:00
parent 395fe1a648
commit 2526a5b627
4 changed files with 168 additions and 196 deletions
@@ -1,13 +1,39 @@
import React from 'react'
import {KTIcon} from '../../../helpers'
import {Dropdown1} from '../../content/dropdown/Dropdown1'
import { NewDateTimeFormatter } from '../../../lib/NewDateTimeFormatter'
// import {KTIcon} from '../../../helpers'
// import {Dropdown1} from '../../content/dropdown/Dropdown1'
type dashDataProps = {
loading: boolean,
data: {
call_return?: string
recent_applications? : {}[]
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
}[]
}
}
type Props = {
className: string
dashData: dashDataProps
}
const ListsWidget3: React.FC<Props> = ({className}) => {
const ListsWidget3: React.FC<Props> = ({dashData, className}) => {
console.log('dashData', dashData.data)
return (
<div className={`card ${className}`}>
{/* begin::Header */}
@@ -31,132 +57,34 @@ const ListsWidget3: React.FC<Props> = ({className}) => {
{/* end::Header */}
{/* begin::Body */}
<div className='card-body pt-2'>
{/* begin::Item */}
<div className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-success'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
{dashData.loading ?
null
:
dashData?.data?.recent_bvn && dashData?.data?.recent_bvn.length ?
dashData?.data?.recent_bvn.map(item => (
<div key={item?.uid} className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-primary'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
{item?.bvn}
</a>
<span className='text-muted fw-semibold d-block'>{NewDateTimeFormatter(item?.added)}</span>
</div>
{/* end::Description */}
<span className='badge badge-light-primary fs-8 fw-bold'>New</span>
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
Create FireStone Logo
</a>
<span className='text-muted fw-semibold d-block'>Due in 2 Days</span>
</div>
{/* end::Description */}
<span className='badge badge-light-success fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
{/* begin::Item */}
<div className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-primary'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
Stakeholder Meeting
</a>
<span className='text-muted fw-semibold d-block'>Due in 3 Days</span>
</div>
{/* end::Description */}
<span className='badge badge-light-primary fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
{/* begin::Item */}
<div className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-warning'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
Scoping &amp; Estimations
</a>
<span className='text-muted fw-semibold d-block'>Due in 5 Days</span>
</div>
{/* end::Description */}
<span className='badge badge-light-warning fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
{/* begin::Item */}
<div className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-primary'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
KPI App Showcase
</a>
<span className='text-muted fw-semibold d-block'>Due in 2 Days</span>
</div>
{/* end::Description */}
<span className='badge badge-light-primary fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
{/* begin::Item */}
<div className='d-flex align-items-center mb-8'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-danger'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
Project Meeting
</a>
<span className='text-muted fw-semibold d-block'>Due in 12 Days</span>
</div>
{/* end::Description */}
<span className='badge badge-light-danger fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
{/* begin::Item */}
<div className='d-flex align-items-center'>
{/* begin::Bullet */}
<span className='bullet bullet-vertical h-40px bg-success'></span>
{/* end::Bullet */}
{/* begin::Checkbox */}
<div className='form-check form-check-custom form-check-solid mx-5'>
<input className='form-check-input' type='checkbox' value='' />
</div>
{/* end::Checkbox */}
{/* begin::Description */}
<div className='flex-grow-1'>
<a href='#' className='text-gray-800 text-hover-primary fw-bold fs-6'>
Customers Update
</a>
<span className='text-muted fw-semibold d-block'>Due in 1 week</span>
</div>
{/* end::Description */}
<span className='badge badge-light-success fs-8 fw-bold'>New</span>
</div>
{/* end:Item */}
))
:
<p>No list Found!</p>
}
</div>
{/* end::Body */}
</div>