Rewrite export tool to use existing components to render output, use existing source URLs for media
This commit is contained in:
parent
60ef6f9332
commit
573a3ca983
8 changed files with 367 additions and 648 deletions
|
@ -37,10 +37,15 @@ function getdaysArray() {
|
|||
export default class DateSeparator extends React.Component {
|
||||
static propTypes = {
|
||||
ts: PropTypes.number.isRequired,
|
||||
isExporting: PropTypes.bool,
|
||||
};
|
||||
|
||||
getLabel() {
|
||||
const date = new Date(this.props.ts);
|
||||
|
||||
// During the time the archive is being viewed, a specific day might not make sense, so we return the full date
|
||||
if (this.props.isExporting) return formatFullDateNoTime(date);
|
||||
|
||||
const today = new Date();
|
||||
const yesterday = new Date();
|
||||
const days = getdaysArray();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue