Merge branch 'master' of https://git.shiblysolution.id/TPAY/dashboard
This commit is contained in:
@ -45,7 +45,7 @@ const DashboardHomePage = () => {
|
||||
useEffect(() => {
|
||||
if (selectYear.length > 0 && !selectedYear) {
|
||||
let latestYear = Math.max(...selectYear.map((item) => parseInt(item, 10))).toString();
|
||||
console.log('latestYear :', latestYear);
|
||||
// console.log('latestYear :', latestYear);
|
||||
setSelectedYear(latestYear);
|
||||
setInitialYear(latestYear);
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ const ManageGroups = () => {
|
||||
|
||||
<div className="grid gap-5 lg:gap-7.5 mt-5 relative">
|
||||
{isReloading && (
|
||||
<div className="fixed inset-0 flex items-center justify-center z-50 bg-white/70">
|
||||
<div className="fixed inset-0 bg-transparent flex items-center justify-center z-50 text-muted-foreground px-4 py-2">
|
||||
<div className="flex flex-col items-center">
|
||||
<RefreshCw className="animate-spin h-8 w-8 text-slate-500 mb-2" />
|
||||
<span className="text-slate-500 font-medium">Refreshing data...</span>
|
||||
|
||||
@ -42,7 +42,15 @@ const DetailApprovalTransaction = () => {
|
||||
}
|
||||
}, [showDetailDialog, selectedTransactionId, GetData]);
|
||||
|
||||
const [activeTab, setActiveTab] = useState('detail'); // 'detail', 'log', 'approve'
|
||||
const [activeTab, setActiveTab] = useState('detail');
|
||||
|
||||
// Reset ke tab awal saat dialog dibuka
|
||||
useEffect(() => {
|
||||
if (showDetailDialog) {
|
||||
setActiveTab('detail');
|
||||
}
|
||||
}, [showDetailDialog]);
|
||||
|
||||
|
||||
return (
|
||||
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
||||
|
||||
@ -56,7 +56,15 @@ const DetailTransaction = () => {
|
||||
}
|
||||
}, [showDetailDialog, selectedTransactionId, GetData]);
|
||||
|
||||
const [activeTab, setActiveTab] = useState('detail'); // 'detail', 'log', 'approve'
|
||||
const [activeTab, setActiveTab] = useState('detail');
|
||||
|
||||
// Reset ke tab awal saat dialog dibuka
|
||||
useEffect(() => {
|
||||
if (showDetailDialog) {
|
||||
setActiveTab('detail');
|
||||
}
|
||||
}, [showDetailDialog]);
|
||||
|
||||
|
||||
return (
|
||||
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
||||
|
||||
Reference in New Issue
Block a user