Added fully archive support!

This commit is contained in:
Daniel
2022-06-02 23:00:51 +04:30
parent b18ef2b905
commit 1d23855eac
10 changed files with 135 additions and 80 deletions
+17
View File
@@ -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;