renderHospitalsTable()

in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/Hospitals.js [14:43]


    renderHospitalsTable(hospitals) {
        return (
            <table className='table table-striped' aria-labelledby="tabelLabel">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>State</th>
                        <th>Type</th>
                        <th>ZipCode</th>
                        <th>Licensed Beds</th>
                        <th>Staffed Beds</th>
                        <th>Potential Increase in Beds</th>
                    </tr>
                </thead>
                <tbody>
                    {hospitals.map(hospitalItem =>
                        <tr key={hospitalItem.name}>
                            <td>{hospitalItem.name}</td>
                            <td>{hospitalItem.stateName}</td>
                            <td>{hospitalItem.hospitalType}</td>
                            <td>{hospitalItem.hqZipCode}</td>
                            <td>{hospitalItem.licencedBeds}</td>
                            <td>{hospitalItem.staffedBeds}</td>
                            <td>{hospitalItem.potentialIncreaseInBedCapac}</td>
                        </tr>
                    )}
                </tbody>
            </table>
        );
    }