update clear history
This commit is contained in:
@ -54,7 +54,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