You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import Link from 'Components/Link/Link';
|
|
import RelativeDateCell from 'Components/Table/Cells/RelativeDateCell';
|
|
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
|
import TableRow from 'Components/Table/TableRow';
|
|
import styles from './LogFilesTableRow.css';
|
|
|
|
class LogFilesTableRow extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
const {
|
|
filename,
|
|
lastWriteTime,
|
|
downloadUrl
|
|
} = this.props;
|
|
|
|
return (
|
|
<TableRow>
|
|
<TableRowCell>{filename}</TableRowCell>
|
|
|
|
<RelativeDateCell
|
|
date={lastWriteTime}
|
|
/>
|
|
|
|
<TableRowCell className={styles.download}>
|
|
<Link
|
|
to={downloadUrl}
|
|
target="_blank"
|
|
noRouter={true}
|
|
>
|
|
Download
|
|
</Link>
|
|
</TableRowCell>
|
|
</TableRow>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
LogFilesTableRow.propTypes = {
|
|
filename: PropTypes.string.isRequired,
|
|
lastWriteTime: PropTypes.string.isRequired,
|
|
downloadUrl: PropTypes.string.isRequired
|
|
};
|
|
|
|
export default LogFilesTableRow;
|