Skip to content

Commit 7707378

Browse files
prettier fix
1 parent 80583b8 commit 7707378

5 files changed

Lines changed: 65 additions & 43 deletions

File tree

src/data/DemoTableSampleData.ts

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,130 @@
1-
export const DemoSampleData = [
1+
export const DemoSampleData = [
22
{
33
demoID: '123e4567-e89b-12d3-a456-426614174000',
44
demoName: 'Create Loan Account',
55
DPG: 'MifosPhee',
6-
demoDescription: 'Initiate a new loan account for a client, including loan amount, term, and repayment plan.',
7-
createdAt: new Date('2025-07-11T09:15:00Z')
6+
demoDescription:
7+
'Initiate a new loan account for a client, including loan amount, term, and repayment plan.',
8+
createdAt: new Date('2025-07-11T09:15:00Z'),
89
},
910
{
1011
demoID: 'a7c3f111-8de9-42aa-a122-3d3a73fcd002',
1112
demoName: 'Create Client Profile',
1213
DPG: 'MifosX',
13-
demoDescription: 'Register a new client with personal and financial details into the system.',
14-
createdAt: new Date('2025-07-12T10:22:00Z')
14+
demoDescription:
15+
'Register a new client with personal and financial details into the system.',
16+
createdAt: new Date('2025-07-12T10:22:00Z'),
1517
},
1618
{
1719
demoID: 'f8a62029-2a91-4ab5-9d8d-f2b674acbf03',
1820
demoName: 'Approve Loan Application',
1921
DPG: 'MifosFusion',
20-
demoDescription: 'Review and approve submitted loan applications after verifying eligibility.',
21-
createdAt: new Date('2025-07-12T14:45:00Z')
22+
demoDescription:
23+
'Review and approve submitted loan applications after verifying eligibility.',
24+
createdAt: new Date('2025-07-12T14:45:00Z'),
2225
},
2326
{
2427
demoID: 'ec54c928-1234-4bc7-9caa-36b9f5e9b004',
2528
demoName: 'Approve Client KYC',
2629
DPG: 'MifosX',
27-
demoDescription: 'Verify and approve Know Your Customer (KYC) documents for client onboarding.',
28-
createdAt: new Date('2025-07-13T08:30:00Z')
30+
demoDescription:
31+
'Verify and approve Know Your Customer (KYC) documents for client onboarding.',
32+
createdAt: new Date('2025-07-13T08:30:00Z'),
2933
},
3034
{
3135
demoID: 'de4a82d3-cf32-42f3-9371-bc4e1e10e005',
3236
demoName: 'Disburse Loan Amount',
3337
DPG: 'MifosPhee',
34-
demoDescription: "Release the approved loan amount to the client's registered bank account.",
35-
createdAt: new Date('2025-07-13T13:15:00Z')
38+
demoDescription:
39+
"Release the approved loan amount to the client's registered bank account.",
40+
createdAt: new Date('2025-07-13T13:15:00Z'),
3641
},
3742
{
3843
demoID: '64b25a6d-f531-431d-b007-c48b8b160006',
3944
demoName: 'Record Loan Repayment',
4045
DPG: 'MifosFusion',
41-
demoDescription: 'Log client loan repayments, including partial and full payments.',
42-
createdAt: new Date('2025-07-14T11:10:00Z')
46+
demoDescription:
47+
'Log client loan repayments, including partial and full payments.',
48+
createdAt: new Date('2025-07-14T11:10:00Z'),
4349
},
4450
{
4551
demoID: '5d9be8f2-89c3-4b9b-bfe9-a5db2e7b0007',
4652
demoName: 'View Loan Statement',
4753
DPG: 'MifosX',
48-
demoDescription: 'Display a detailed statement of loan disbursement, repayments, and remaining balance.',
49-
createdAt: new Date('2025-07-14T14:05:00Z')
54+
demoDescription:
55+
'Display a detailed statement of loan disbursement, repayments, and remaining balance.',
56+
createdAt: new Date('2025-07-14T14:05:00Z'),
5057
},
5158
{
5259
demoID: 'b8a59d1c-92fd-4d61-b9ab-7ce72ef30008',
5360
demoName: 'Edit Client Information',
5461
DPG: 'MifosPhee',
55-
demoDescription: 'Update existing client records including contact and financial details.',
56-
createdAt: new Date('2025-07-14T15:45:00Z')
62+
demoDescription:
63+
'Update existing client records including contact and financial details.',
64+
createdAt: new Date('2025-07-14T15:45:00Z'),
5765
},
5866
{
5967
demoID: 'ee6a7b24-05cf-4dbf-a56e-0248ef3f0009',
6068
demoName: 'Close Loan Account',
6169
DPG: 'MifosFusion',
62-
demoDescription: 'Mark a loan account as closed after full repayment or settlement.',
63-
createdAt: new Date('2025-07-15T08:50:00Z')
70+
demoDescription:
71+
'Mark a loan account as closed after full repayment or settlement.',
72+
createdAt: new Date('2025-07-15T08:50:00Z'),
6473
},
6574
{
6675
demoID: '91b0d1f2-d764-4e1e-a278-2f6c9c5d0010',
6776
demoName: 'View Client History',
6877
DPG: 'MifosX',
69-
demoDescription: 'Access a summary of all financial activities related to a particular client.',
70-
createdAt: new Date('2025-07-15T12:40:00Z')
78+
demoDescription:
79+
'Access a summary of all financial activities related to a particular client.',
80+
createdAt: new Date('2025-07-15T12:40:00Z'),
7181
},
7282
{
7383
demoID: 'af3d02ab-0d70-4e1d-8fc1-6817c2c20011',
7484
demoName: 'Create Group Loan',
7585
DPG: 'MifosPhee',
76-
demoDescription: 'Initiate a loan account for a client group with shared repayment responsibilities.',
77-
createdAt: new Date('2025-07-16T10:05:00Z')
86+
demoDescription:
87+
'Initiate a loan account for a client group with shared repayment responsibilities.',
88+
createdAt: new Date('2025-07-16T10:05:00Z'),
7889
},
7990
{
8091
demoID: '8f22e02d-0c2e-4dc2-82b2-7e4a500d0012',
8192
demoName: 'Approve Group Membership',
8293
DPG: 'MifosFusion',
83-
demoDescription: 'Authorize clients to join a group for group-based loan eligibility.',
84-
createdAt: new Date('2025-07-16T13:15:00Z')
94+
demoDescription:
95+
'Authorize clients to join a group for group-based loan eligibility.',
96+
createdAt: new Date('2025-07-16T13:15:00Z'),
8597
},
8698
{
8799
demoID: '703e6cc0-d0b7-42ae-94a5-56f4d7f00013',
88100
demoName: 'Schedule Loan Repayment',
89101
DPG: 'MifosX',
90-
demoDescription: 'Set up a recurring repayment schedule for an active loan account.',
91-
createdAt: new Date('2025-07-17T09:00:00Z')
102+
demoDescription:
103+
'Set up a recurring repayment schedule for an active loan account.',
104+
createdAt: new Date('2025-07-17T09:00:00Z'),
92105
},
93106
{
94107
demoID: '0c0fc1d2-087a-4c18-90b0-55b84d870014',
95108
demoName: 'Generate Loan Report',
96109
DPG: 'MifosPhee',
97-
demoDescription: 'Generate PDF or Excel reports for all active or closed loans in the system.',
98-
createdAt: new Date('2025-07-17T11:30:00Z')
110+
demoDescription:
111+
'Generate PDF or Excel reports for all active or closed loans in the system.',
112+
createdAt: new Date('2025-07-17T11:30:00Z'),
99113
},
100114
{
101115
demoID: '31a4fdfa-8180-40f3-89e7-b3815aa70015',
102116
demoName: 'Assign Loan Officer',
103117
DPG: 'MifosFusion',
104-
demoDescription: 'Allocate a specific loan officer to a client or loan application.',
105-
createdAt: new Date('2025-07-18T10:10:00Z')
118+
demoDescription:
119+
'Allocate a specific loan officer to a client or loan application.',
120+
createdAt: new Date('2025-07-18T10:10:00Z'),
106121
},
107122
{
108123
demoID: 'f0d03f91-2187-46d4-b688-b61b1ad90016',
109124
demoName: 'Track Loan Performance',
110125
DPG: 'MifosX',
111-
demoDescription: 'Analyze loan metrics such as repayment rate, delinquency, and defaults.',
112-
createdAt: new Date('2025-07-18T14:45:00Z')
113-
}
126+
demoDescription:
127+
'Analyze loan metrics such as repayment rate, delinquency, and defaults.',
128+
createdAt: new Date('2025-07-18T14:45:00Z'),
129+
},
114130
];

src/lib/api/fetchDemoData.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import axios from "axios";
1+
import axios from 'axios';
22

33
export const fetchDemoData = async () => {
4-
const response = await axios.get(`${import.meta.env.VITE_API_URL}/demoData`);
5-
return response.data;
6-
};
4+
const response = await axios.get(`${import.meta.env.VITE_API_URL}/demoData`);
5+
return response.data;
6+
};

src/lib/api/fetchDemoListData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22

33
export const fetchDemoListData = async () => {
4-
const response = await axios.get(`${import.meta.env.VITE_API_URL}/demoList`);
5-
return response.data;
6-
};
4+
const response = await axios.get(`${import.meta.env.VITE_API_URL}/demoList`);
5+
return response.data;
6+
};

src/pages/demo-list/phee.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export default function PheeDemos() {
4040
id: 'action',
4141
header: '',
4242
cell: () => (
43-
<Button className="bg-blue-500 text-white px-3 py-1 rounded text-sm hover:bg-blue-600 cursor-pointer" title="Start this demo">
43+
<Button
44+
className="bg-blue-500 text-white px-3 py-1 rounded text-sm hover:bg-blue-600 cursor-pointer"
45+
title="Start this demo"
46+
>
4447
Start Demo
4548
</Button>
4649
),

src/pages/demo-list/vnext.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export default function MifosXDemos() {
4040
id: 'action',
4141
header: '',
4242
cell: () => (
43-
<Button className="bg-blue-500 text-white px-3 py-1 rounded text-sm hover:bg-blue-600 cursor-pointer" title="Start this demo">
43+
<Button
44+
className="bg-blue-500 text-white px-3 py-1 rounded text-sm hover:bg-blue-600 cursor-pointer"
45+
title="Start this demo"
46+
>
4447
Start Demo
4548
</Button>
4649
),

0 commit comments

Comments
 (0)