Closed ehsuGit closed 1 month ago
L15: could add function comments Could add more descriptive error messages Could add loading message L26 specifies fourth sheet, not first
Design-04: In the comment: UploadFile, not UploadsFile. There could be more comments here. Also, the comment says .csv files, but the code is reading .xlsx files. Either add support for .csv or change the comment at the top. Line 27: First sheet would be at index 0.
Show a loading indicator while the files is being processed File type validation should accepts csv files. (accepts only .xlsx, .xls, and .xlsm)
Architecture OK Design 04 - Comment on line 7 should be changed to UploadFile.jsx JS and ESLint 08 - Could have more comments detailing the function of the file. Could add a swal section to confirm file upload React 01 - Could break up the code and have the file handling in a different file. Also doesn't look like it can handle files other than xlsx yet?
Render statement seems like it could be simplified as a separate component Other than that, just comments could be updated
Please review the UploadFile.jsx, linked here
Use these guidelines:
DUE: 10/7