-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into Rahul-539
- Loading branch information
Showing
8 changed files
with
1,101 additions
and
33 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
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
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
38 changes: 38 additions & 0 deletions
38
src/ui/pages/container/CL-Transcription/AnnotationTranscription.jsx
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,38 @@ | ||
import LSF from "../Label-Studio/LSF"; | ||
import AudioTranscriptionLandingPage from "./AudioTranscriptionLandingPage"; | ||
import { useSelector } from "react-redux"; | ||
import { useEffect } from "react"; | ||
import { useParams } from "react-router-dom"; | ||
import GetProjectDetailsAPI from "../../../../redux/actions/api/ProjectDetails/GetProjectDetails"; | ||
import APITransport from "../../../../redux/actions/apitransport/apitransport"; | ||
import { useDispatch } from "react-redux"; | ||
import { Padding } from "@mui/icons-material"; | ||
|
||
const AnnotationTranscription = () => { | ||
const ProjectDetails = useSelector((state) => state.getProjectDetails.data); | ||
const { projectId, taskId } = useParams(); | ||
const dispatch = useDispatch(); | ||
|
||
const getProjectDetails = () => { | ||
const projectObj = new GetProjectDetailsAPI(projectId); | ||
dispatch(APITransport(projectObj)); | ||
}; | ||
useEffect(() => { | ||
getProjectDetails(); | ||
}, []); | ||
|
||
if (ProjectDetails) { | ||
console.log("project", ProjectDetails); | ||
} | ||
return ( | ||
<div style={{ margin: 0, padding: 0 }}> | ||
{ProjectDetails?.project_type === "StandardizedTranscriptionEditing" ? ( | ||
<AudioTranscriptionLandingPage /> | ||
) : ( | ||
<LSF /> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default AnnotationTranscription; |
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
Oops, something went wrong.