this.fetchDownloads()}/>
{stoppableHeader}
{this.state.once_downloads.map((i) =>
)}
>);
}
let recurringTable = tablePlaceholder;
if (this.state.recurring_downloads !== null && this.state.recurring_downloads.length === 0) {
recurringTable = No recurring downloads are scheduled.
} else if (this.state.recurring_downloads !== null) {
recurringTable = (
{nonStoppableHeader}
{this.state.recurring_downloads.map((i) => )}
);
}
return (
{onceTable}
{recurringTable}
);
}
}
export default function Admin(props) {
const links = [
{text: 'Downloads', to: '/admin', exact: true, key: 'admin'},
{text: 'Settings', to: '/admin/settings', key: 'settings'},
{text: 'WROL Mode', to: '/admin/wrol', key: 'wrol'},
];
return (
)
}