Cleaner code with prettier.
This commit is contained in:
@@ -1,17 +1,28 @@
|
||||
import '../styles/ViewArchived.css';
|
||||
import config from '../config';
|
||||
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';
|
||||
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 className='link' href={screenshotPath} target='_blank' rel="noreferrer">Screenshot</a>
|
||||
<hr className='seperator' />
|
||||
<a className='link' href={pdfPath} target='_blank' rel="noreferrer">PDF</a>
|
||||
<div className="view-archived">
|
||||
<a
|
||||
className="link"
|
||||
href={screenshotPath}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Screenshot
|
||||
</a>
|
||||
<hr className="seperator" />
|
||||
<a className="link" href={pdfPath} target="_blank" rel="noreferrer">
|
||||
PDF
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default ViewArchived;
|
||||
export default ViewArchived;
|
||||
|
||||
Reference in New Issue
Block a user