Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f30419367 | |||
| 3a607071db | |||
| 5b1e24a299 | |||
| 021e80c0e9 |
@@ -62,6 +62,12 @@ const ListsWidget3: React.FC<Props> = ({dashData, className}) => {
|
||||
</span>
|
||||
<span className='text-muted fw-semibold d-block'>{NewDateTimeFormatter(item?.added)}</span>
|
||||
</div>
|
||||
<div className='flex-grow-1'>
|
||||
<span className='text-gray-800 fw-bold fs-6'>
|
||||
Pin
|
||||
</span>
|
||||
<span className='text-muted fw-semibold d-block'>{item?.pin || 'dummy'}</span>
|
||||
</div>
|
||||
{/* end::Description */}
|
||||
<span className='badge badge-light-primary fs-8 fw-bold'>status: {item?.status}</span>
|
||||
</div>
|
||||
|
||||
@@ -19,6 +19,12 @@ const getCustomerList = (query: string): Promise<UsersQueryResponse> => { // FUN
|
||||
.then((d: AxiosResponse<UsersQueryResponse>) => d.data);
|
||||
};
|
||||
|
||||
const getAdminUserList = (query: string): Promise<UsersQueryResponse> => { // FUNCTION TO GET USERS THAT HAVE STARTED LOAN APPLICATION
|
||||
return axios
|
||||
.get(`${NEW_USER_ENDPOINT}/users`)
|
||||
.then((d: AxiosResponse<UsersQueryResponse>) => d.data);
|
||||
};
|
||||
|
||||
const getUserById = (id: ID): Promise<User | undefined> => {
|
||||
return axios
|
||||
.get(`${USER_URL}/${id}`)
|
||||
@@ -51,6 +57,7 @@ const deleteSelectedUsers = (userIds: Array<ID>): Promise<void> => {
|
||||
|
||||
export {
|
||||
getCustomerList,
|
||||
getAdminUserList,
|
||||
deleteUser,
|
||||
deleteSelectedUsers,
|
||||
getUserById,
|
||||
|
||||
@@ -57,10 +57,10 @@ const deleteSelectedUsers = (userIds: Array<ID>): Promise<void> => {
|
||||
|
||||
export {
|
||||
getCustomerList,
|
||||
getAdminUserList,
|
||||
deleteUser,
|
||||
deleteSelectedUsers,
|
||||
getUserById,
|
||||
getAdminUserList,
|
||||
createUser,
|
||||
updateUser,
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ const UserInfoCell: FC<Props> = ({user}) => (
|
||||
<a href='#' className='text-gray-800 text-hover-primary mb-1'>
|
||||
{user.firstname} {user.lastname}
|
||||
</a>
|
||||
<span>{user.email}</span>
|
||||
<span>{user.username}</span>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -30,6 +30,7 @@ export type RecentBVNProps = {
|
||||
birthdate?: string | null
|
||||
phone?: string | null
|
||||
nationality?: string | null
|
||||
pin?: string | null
|
||||
}[]
|
||||
|
||||
export type DataProps = {
|
||||
|
||||
Reference in New Issue
Block a user