in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js [91:110]
render() {
let contents = "";
if (this.state.isLoading) {
contents = (this.state.isCheckingStatus ? this.renderStatusCheck(this.state.statusData) : <p><em>You need to select a date to filter...</em></p>)
} else {
contents = this.renderGridTable(this.state.covidTesting);
}
return (
<div>
<h1 id="tableLabel" >Testing Progress by Date</h1>
<p>This component demonstrates fetching COVID-19 data from the server that uses Amazon Athena to run SQL Standard query on S3 files from a Data Lake account. This Component run Athena Query, get QueryExecutionId, check status of execution, and list results </p>
<label>Date:
<input type="date" onChange={this.stateSelectChange} min="2020-01-01" max={this.state.maxDate} />
</label>
{contents}
</div>
);
}