Skip to content

Commit f3aa01c

Browse files
committed
remove the delete button in the wrong tab
1 parent 92db4a8 commit f3aa01c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/ui/VsumDetailsModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ export const VsumDetailsModal: React.FC<Props> = ({ isOpen, vsumId, onClose, onS
262262
</button>
263263

264264
<div style={{ display: 'flex', gap: 8 }}>
265+
{activeTab === 'details' && (
265266
<button
266267
style={{
267268
padding: '8px 14px',
@@ -277,6 +278,7 @@ export const VsumDetailsModal: React.FC<Props> = ({ isOpen, vsumId, onClose, onS
277278
>
278279
Delete
279280
</button>
281+
)}
280282

281283
{activeTab === 'details' && (
282284
<button

0 commit comments

Comments
 (0)