update clear history
This commit is contained in:
@ -42,7 +42,15 @@ const DetailApprovalTransaction = () => {
|
|||||||
}
|
}
|
||||||
}, [showDetailDialog, selectedTransactionId, GetData]);
|
}, [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 (
|
return (
|
||||||
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
||||||
|
|||||||
@ -54,7 +54,15 @@ const DetailTransaction = () => {
|
|||||||
}
|
}
|
||||||
}, [showDetailDialog, selectedTransactionId, GetData]);
|
}, [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 (
|
return (
|
||||||
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
<Dialog open={showDetailDialog} onOpenChange={setShowDetailDialog}>
|
||||||
|
|||||||
Reference in New Issue
Block a user