Use dynamic S3 doc.url in DocumentViewer instead of hardcoded localhost
All checks were successful
Beta CI/CD Pipeline / build-and-test (push) Successful in 12s
Beta CI/CD Pipeline / deploy-beta (push) Successful in 6s

This commit is contained in:
vickytechkey 2026-08-16 11:06:52 +05:30
parent 84674ea206
commit 07193f78c0

View file

@ -31,7 +31,7 @@ const DocumentViewer = ({ documents, sellerId }) => {
[Presigned Document Preview: {doc.filename}]
</div>
<div style={{ display: 'flex', gap: '10px' }}>
<a href={`http://localhost:8002/api/crm/sellers/${sellerId}/documents/?type=${doc.type}`} target="_blank" rel="noreferrer" className="btn btn-secondary" style={{ flex: 1, fontSize: '12px', padding: '8px' }}>
<a href={doc.url} target="_blank" rel="noreferrer" className="btn btn-secondary" style={{ flex: 1, fontSize: '12px', padding: '8px' }}>
Open Original
</a>
</div>