Skip to content

Commit

Permalink
Merge pull request #233 from AI4Bharat/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Jan 23, 2025
2 parents dfe18a9 + a7de97f commit 100ff3f
Show file tree
Hide file tree
Showing 18 changed files with 1,170 additions and 860 deletions.
22 changes: 21 additions & 1 deletion src/app/new-project/newproject.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const CreateProject = () => {
const [tableData, setTableData] = useState([]);
const [searchAnchor, setSearchAnchor] = useState(null);
const [is_published, setIsPublished] = useState(false);
const [conceal, setconceal] = useState(false);
const [selectedFilters, setsSelectedFilters] = useState({});
const [createannotationsAutomatically, setsCreateannotationsAutomatically] =
useState("none");
Expand Down Expand Up @@ -393,6 +394,10 @@ const CreateProject = () => {
const handleChangeIsPublished = (event) => {
setIsPublished(event.target.checked);
};
const handleChangeconceal = (event) => {
setconceal(event.target.checked);
};


useEffect(() => {
setTotalDataitems(DataItems.count);
Expand Down Expand Up @@ -571,6 +576,7 @@ const CreateProject = () => {
is_published: is_published,
password: passwordForProjects,
metadata_json: questionsJSON,
conceal:conceal
};
console.log(newProject);

Expand Down Expand Up @@ -606,6 +612,7 @@ const CreateProject = () => {
is_published: is_published,
password: passwordForProjects,
metadata_json: questionsJSON,
conceal:conceal
};
console.log(newProject);

Expand Down Expand Up @@ -1502,7 +1509,20 @@ const CreateProject = () => {
sx={{ mt: 2, ml: 2, mb: 2 }}
/>
</Grid>
) : null}
) :null
}
<Grid container direction="row" alignItems="center">
<Typography gutterBottom components="div">
Hide Details :
</Typography>
<Switch
checked={conceal}
onChange={handleChangeconceal}
inputProps={{ "aria-label": "controlled" }}
sx={{ mt: 2, ml: 2, mb: 2 }}
/>
</Grid>

</>
)}
<Grid
Expand Down
Loading

0 comments on commit 100ff3f

Please sign in to comment.