Compare commits

..

10 Commits

Author SHA1 Message Date
victorAnumudu ede0aa0358 updated btn 2024-10-22 05:33:10 +01:00
ameye e2ea8e18ed Merge branch 'btn-name-change' of DigiFi/digifi-bko into master 2024-09-11 15:56:56 +00:00
victorAnumudu 5e13f6225f updated button name 2024-09-10 16:48:08 +01:00
ameye 7fcf45fcf5 Merge branch 'user-list-table-update' of DigiFi/digifi-bko into master 2024-09-09 18:43:41 +00:00
victorAnumudu 9f30419367 added table list update 2024-09-09 19:10:28 +01:00
ameye 3a607071db Merge branch 'admin-list-bug-fix' of DigiFi/digifi-bko into master 2024-09-09 16:44:58 +00:00
victorAnumudu 5b1e24a299 bug fixed 2024-09-07 12:16:54 +01:00
ameye 021e80c0e9 Merge branch 'help-page' of DigiFi/digifi-bko into master 2024-09-05 18:41:21 +00:00
victorAnumudu 9b2e0a6857 help page fixed 2024-09-05 19:31:03 +01:00
ameye 724e846826 Merge branch 'rounded-radius' of DigiFi/digifi-bko into master 2024-09-05 17:26:39 +00:00
11 changed files with 34 additions and 12 deletions
@@ -2,12 +2,17 @@ import {useIntl} from 'react-intl'
import {MenuItem} from './MenuItem'
import {MenuInnerWithSub} from './MenuInnerWithSub'
import {MegaMenu} from './MegaMenu'
import { useLocation } from 'react-router-dom'
export function MenuInner() {
const intl = useIntl()
const {pathname} = useLocation()
const isHelpPath = pathname == '/help'
return (
<>
<MenuItem title={intl.formatMessage({id: 'MENU.DASHBOARD'})} to='/dashboard' />
{/* <MenuItem title={intl.formatMessage({id: 'MENU.DASHBOARD'})} to='/dashboard' /> */}
<MenuItem title={`${isHelpPath ? 'Help' : 'Dashboard'}`} to={`${isHelpPath ? '/help' : '/dashboard'}`} />
{/* <MenuItem title='Layout Builder' to='/builder' /> */}
<MenuInnerWithSub
title='Crafted'
@@ -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,
@@ -40,13 +40,13 @@ const UserActionsCell: FC<Props> = ({id}) => {
data-kt-menu-trigger='click'
data-kt-menu-placement='bottom-end'
>
Actions
<KTIcon iconName='down' className='fs-5 m-0' />
View
{/* <KTIcon iconName='down' className='fs-5 m-0' /> */}
</a>
{/* begin::Menu */}
<div
className='menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 menu-state-bg-light-primary fw-bold fs-7 w-125px py-4'
data-kt-menu='true'
data-kt-menu='false'
>
{/* begin::Menu item */}
<div className='menu-item px-3'>
@@ -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>
)
+6 -3
View File
@@ -1,8 +1,11 @@
import { Content } from "../../../_digifi/layout/components/content";
export default function HelpPage() {
return (
<div className="w-100 h-100">
<h1 className="fs-2hx fw-bold text-gray-800">Help</h1>
</div>
<Content>
<div className="w-100 h-100">
<h1 className="fs-2hx fw-bold text-gray-800">Help</h1>
</div>
</Content>
)
}
@@ -72,7 +72,7 @@ const UserActionsCell: FC<Props> = ({ id }) => {
data-kt-users-table-filter="delete_row"
onClick={async () => resendVerification()}
>
Resend Verification
Employer Verification
</a>
</div>
{/* end::Menu item */}
+1
View File
@@ -30,6 +30,7 @@ export type RecentBVNProps = {
birthdate?: string | null
phone?: string | null
nationality?: string | null
pin?: string | null
}[]
export type DataProps = {
-2
View File
@@ -11,7 +11,6 @@ import {PrivateRoutes} from './PrivateRoutes'
import {ErrorsPage} from '../modules/errors/ErrorsPage'
import {Logout, AuthPage, useAuth} from '../modules/auth'
import {App} from '../App'
import HelpPage from '../modules/help/HelpPage'
/**
* Base URL of the website.
@@ -27,7 +26,6 @@ const AppRoutes: FC = () => {
<Routes>
<Route element={<App />}>
<Route path='error/*' element={<ErrorsPage />} />
<Route path='/help' element={<HelpPage />} />
<Route path='logout' element={<Logout />} />
{currentUser ? (
<>
+2
View File
@@ -6,6 +6,7 @@ import { DashboardWrapper } from "../pages/dashboard/DashboardWrapper";
// import {MenuTestPage} from '../pages/MenuTestPage'
import { getCSSVariableValue } from "../../_digifi/assets/ts/_utils";
import { WithChildren } from "../../_digifi/helpers";
import HelpPage from "../modules/help/HelpPage";
// import BuilderPageWrapper from '../pages/layout-builder/BuilderPageWrapper'
const PrivateRoutes = () => {
@@ -98,6 +99,7 @@ const PrivateRoutes = () => {
</SuspensedView>
}
/>
<Route path='/help' element={<HelpPage />} />
{/* Page Not Found */}
<Route path="*" element={<Navigate to="/error/404" />} />
</Route>