Skip to content

Commit

Permalink
Merge pull request #70 from palladiumkenya/AddKephLevel
Browse files Browse the repository at this point in the history
update excel upload
  • Loading branch information
MaryKilewe authored Apr 26, 2024
2 parents 2fb12e3 + 627fa52 commit f1e9f4c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ const Home = (props) =>{
<div className="d-flex justify-content-end mb-3" style={{paddingTop:"20px"}}>
<a href="/facilities/add_facility" className="btn btn-sm green_bg_color text-white" style={{width:"200px", paddingRight:"10px"}}>Add New Facility</a>
</div>
{/*{ isAuthenticated && userEmailAllowed && */}
{/* { isAuthenticated &&*/}
{/* <div className="d-flex justify-content-end mb-3" style={{paddingTop:"10px"}}>*/}
{/* <SiMicrosoftexcel onClick={handleExcelHISSubmit} style={{color:"green", fontSize:"30px"}}/>*/}
{/* <input type="file" onChange={uploadExcelHIS} accept=".xlsx" required/>*/}
{/* <button onClick={handleExcelHISSubmit} className="btn btn-sm green_bg_color text-white">*/}
{/* Upload HIS Excel*/}
{/* { showUploadExcelSpinner && <Spinner style={{width: "1.2rem", height: "1.2rem"}}></Spinner> }*/}
{/* </button>*/}
{/* </div>*/}
{/*}*/}
{ isAuthenticated && userEmailAllowed &&
<div className="d-flex justify-content-end mb-3" style={{paddingTop:"10px"}}>
<SiMicrosoftexcel onClick={handleExcelHISSubmit} style={{color:"green", fontSize:"30px"}}/>
<input type="file" onChange={uploadExcelHIS} accept=".xlsx, .xls" required/>
<button onClick={handleExcelHISSubmit} className="btn btn-sm green_bg_color text-white">
Upload HIS Excel
{ showUploadExcelSpinner && <Spinner style={{width: "1.2rem", height: "1.2rem"}}></Spinner> }
</button>
</div>
}

<div className="d-flex justify-content-between">
<h4>
Expand Down

0 comments on commit f1e9f4c

Please sign in to comment.