Use dynamic S3 doc.url in DocumentViewer instead of hardcoded localhost
This commit is contained in:
parent
84674ea206
commit
07193f78c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue