function SiteGridView(props) {
  return (
    // Column of size 9
    <div className="col-9">
      {/* Grid header */}
      <GridHeader
        increaseDecreaseYear={props.increaseDecreaseYear}
        currentSiteName={props.currentSiteName}
        yearToForecast={props.yearToForecast}
        activateCreateMode={props.activateCreateMode}
      />
      {/* Table header */}
      <table className="table table-responsive table-sm table-dark">
        <TableHeader />

        {/* Table body */}
        <tbody>
          {/* Iterate through the current site equipment and form detail */}
          {props.currentSiteEquipment.map((val, index) => {
            return (
              <EquipmentDetailRow
                key={index}
                val={val}
                selectDetail={props.selectDetail}
                eventData={props.currentSiteEvents}
                yearToForecast={props.yearToForecast}
                addNewEvent={props.addNewEvent}
                currentSiteId={props.currentSiteId}
                delete={props.delete}
              />
            );
          })}
        </tbody>
      </table>
    </div>
  );
}
// Functional component of site grid view table
Functional component of site grid view table
Functional component of site grid view table
function SiteGridView(props) {
  return (
    <div className="col-9">
      {}
      <GridHeader
        increaseDecreaseYear={props.increaseDecreaseYear}
        currentSiteName={props.currentSiteName}
        yearToForecast={props.yearToForecast}
        activateCreateMode={props.activateCreateMode}
      />
      {}
      <table className="table table-responsive table-sm table-dark">
        <TableHeader />
        {}
        <tbody>
          {}
          {props.currentSiteEquipment.map((val, index) => {
            return (
              <EquipmentDetailRow
                key={index}
                val={val}
                selectDetail={props.selectDetail}
                eventData={props.currentSiteEvents}
                yearToForecast={props.yearToForecast}
                addNewEvent={props.addNewEvent}
                currentSiteId={props.currentSiteId}
                delete={props.delete}
              />
            );
          })}
        </tbody>
      </table>
    </div>
  );
}
function SiteGridView ( props ) { return ( < div className = "col-9" > { } < GridHeader increaseDecreaseYear = { props . increaseDecreaseYear } currentSiteName = { props . currentSiteName } yearToForecast = { props . yearToForecast } activateCreateMode = { props . activateCreateMode } / > { } < table className = "table table-responsive table-sm table-dark" > < TableHeader / > { } < tbody > { } { props . currentSiteEquipment . map ( ( val , index ) => { return ( < EquipmentDetailRow key = { index } val = { val } selectDetail = { props . selectDetail } eventData = { props . currentSiteEvents } yearToForecast = { props . yearToForecast } addNewEvent = { props . addNewEvent } currentSiteId = { props . currentSiteId } delete = { props . delete } / > ) ; } ) } < / tbody > < / table > < / div > ) ; }
Functional component of site grid view table
Functional component of site grid view table
// Column of size 9 /* Grid header */ /* Table header */ /* Table body */ /* Iterate through the current site equipment and form detail */