-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from hotosm/feature/upload-labels
Feature : Upload Custom Labels
- Loading branch information
Showing
2 changed files
with
196 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
frontend/src/components/Layout/TrainingDS/DatasetEditor/UploadProgressModal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, { useState } from "react"; | ||
import { Dialog, DialogContent, CircularProgress } from "@mui/material"; | ||
|
||
const UploadProgressModal = ({ open, progress }) => { | ||
console.log(progress); | ||
return ( | ||
<Dialog open={open}> | ||
<DialogContent> | ||
<div style={{ textAlign: "center" }}> | ||
<CircularProgress /> | ||
<p> | ||
Uploading {progress.current} of {progress.total} labels... | ||
</p> | ||
</div> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default UploadProgressModal; |