forked from openedx/frontend-lib-special-exams
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feet: [BD-26][EDUCATOR-5761, EDUCATOR-5762] Add additional pages for …
…proctored exams (#10) * feat: [OeX_Proctoring-178] add mock api for fetching proctoring settings and instructions * feat: use API instead of mocked data to get proctoring settings * feat: add proctoring software download page + refactor footer * feat: add user verification page * feat: add proctored exam instructions page (when exam is in 'ready_to_start' status) * feat: [OeX_Proctoring-178] fetch proctoring settings and add proctoring exam instructions (#14) Co-authored-by: Ihor Romaniuk <[email protected]> Co-authored-by: Sagirov Evgeniy <[email protected]> * [BD-26] Cover timed exam functionality with unit and functional tests (#16) * feat: Cover timed exam functionality with unit and functional tests * fix: don't do pulling when exam is in 'ready_to_submit' status (#19) * [BD-26][EDUCATOR-5791, EDUCATOR-5767] Add handling of exam API errors and support for js workers from provider (#20) * feat: add handling of exam API errors * feat: add support for workers from proctoring providers * feat: get provider software download url from backend instead of building on the frontend * fix: merge errors * fix: fix tests * feat: add verification url to user verification page Co-authored-by: Ihor Romaniuk <[email protected]> Co-authored-by: Sagirov Eugeniy <[email protected]> Co-authored-by: Ihor Romaniuk <[email protected]> Co-authored-by: Sagirov Evgeniy <[email protected]>
- Loading branch information
1 parent
c4b2b13
commit addb8f8
Showing
23 changed files
with
788 additions
and
94 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { useContext } from 'react'; | ||
import { Button } from '@edx/paragon'; | ||
import { FormattedMessage } from '@edx/frontend-platform/i18n'; | ||
import ExamStateContext from '../../context'; | ||
|
||
const Footer = () => { | ||
const state = useContext(ExamStateContext); | ||
const { proctoringSettings } = state; | ||
const { link_urls: linkUrls } = proctoringSettings; | ||
const faqUrl = linkUrls && linkUrls.faq; | ||
|
||
return ( | ||
<div className="footer-sequence"> | ||
{faqUrl && ( | ||
<Button | ||
data-testid="request-exam-time-button" | ||
variant="link" | ||
href={faqUrl} | ||
target="_blank" | ||
> | ||
<FormattedMessage | ||
id="exam.startExamInstructions.footerButton" | ||
defaultMessage="About Proctored Exams" | ||
/> | ||
</Button> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
Oops, something went wrong.