Added fully archive support!
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import '../styles/ViewArchived.css';
|
||||
import config from '../config';
|
||||
|
||||
const ViewArchived = ({ id }) => {
|
||||
const screenshotPath = config.API.ADDRESS + ":" + config.API.PORT + '/screenshots/' + id + '.png';
|
||||
const pdfPath = config.API.ADDRESS + ":" + config.API.PORT + '/pdfs/' + id + '.pdf';
|
||||
|
||||
return (
|
||||
<div className='view-archived'>
|
||||
<a href={screenshotPath} target='_blank'>Screenshot</a>
|
||||
<hr className='seperator' />
|
||||
<a href={pdfPath} target='_blank'>PDF</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ViewArchived;
|
||||
Reference in New Issue
Block a user