update dashboard view
This commit is contained in:
@ -53,7 +53,7 @@ const MemberActivity = ({ startdate, enddate }: Props) => {
|
|||||||
const arcY = 50 - radius * Math.sin(arcAngle);
|
const arcY = 50 - radius * Math.sin(arcAngle);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 bg-white rounded-lg shadow-md w-full max-w-xl">
|
<div className="p-6 bg-white rounded-lg shadow-md w-1/3">
|
||||||
<div className="flex justify-between items-center pb-3 mb-4">
|
<div className="flex justify-between items-center pb-3 mb-4">
|
||||||
<h2 className="text-lg font-semibold text-gray-700">Member Activity</h2>
|
<h2 className="text-lg font-semibold text-gray-700">Member Activity</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -46,7 +46,7 @@ const TransactionPieChart = ({ startdate, enddate }: Props) => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-white rounded-lg shadow-md p-6 w-full max-w-md">
|
<div className="bg-white rounded-lg shadow-md p-6 w-1/3">
|
||||||
<div className="flex justify-between items-center mb-4">
|
<div className="flex justify-between items-center mb-4">
|
||||||
<h2 className="text-lg font-semibold text-gray-700">Transaction Chart</h2>
|
<h2 className="text-lg font-semibold text-gray-700">Transaction Chart</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -80,7 +80,7 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
|
|||||||
const maxValue = transactionData.length > 0 ? Math.max(...transactionData.map(item => item.value)) : 1;
|
const maxValue = transactionData.length > 0 ? Math.max(...transactionData.map(item => item.value)) : 1;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-white rounded-xl shadow p-6 w-full max-w-md">
|
<div className="bg-white rounded-xl shadow p-6 w-1/3">
|
||||||
<div className="flex justify-between items-center mb-4">
|
<div className="flex justify-between items-center mb-4">
|
||||||
<h2 className="text-lg font-semibold text-gray-800">Transaction Value</h2>
|
<h2 className="text-lg font-semibold text-gray-800">Transaction Value</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -284,13 +284,13 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
|
|
||||||
if (transactioncode) {
|
if (transactioncode) {
|
||||||
formattedFilter["Transactions.msisdn"] = {
|
formattedFilter["Transactions.msisdn"] = {
|
||||||
like: `%${transactioncode}%`
|
like: `${transactioncode}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactioncode) {
|
if (transactioncode) {
|
||||||
formattedFilter["Transactions.fullname"] = {
|
formattedFilter["Transactions.fullname"] = {
|
||||||
like: `%${transactioncode}%`
|
like: `${transactioncode}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -281,13 +281,13 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
|
|
||||||
if (transactioncode) {
|
if (transactioncode) {
|
||||||
formattedFilter["Transactions.msisdn"] = {
|
formattedFilter["Transactions.msisdn"] = {
|
||||||
like: `%${transactioncode}%`
|
like: `${transactioncode}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactioncode) {
|
if (transactioncode) {
|
||||||
formattedFilter["Transactions.fullname"] = {
|
formattedFilter["Transactions.fullname"] = {
|
||||||
like: `%${transactioncode}%`
|
like: `${transactioncode}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user