-
Notifications
You must be signed in to change notification settings - Fork 5
TaskId #0000 task:implemted popup message for demo version for milestone level 5 #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: all-saas-prod
Are you sure you want to change the base?
Changes from 4 commits
d0139b5
037a8f9
76e7f84
9e1affd
e994c97
57c7154
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,25 @@ | ||
| /* Constants to be used across the app */ | ||
|
|
||
| export const APP_CONSTANTS = { | ||
| APP_TITLE: 'Consuli', | ||
| PAGE_NOT_FOUND: 'Page Not found', | ||
| APP_TITLE: "Consuli", | ||
| PAGE_NOT_FOUND: "Page Not found", | ||
| }; | ||
|
|
||
| export const API_CONSTANTS = { | ||
| API_URL: 'http://localhost:3001/', | ||
| API_URL: "http://localhost:3001/", | ||
| }; | ||
|
|
||
| export const POPUP_TEXT_CONSTANT = { | ||
| DEMO_MAX_MILESTONE_POPUP_TEXT: ( | ||
| <> | ||
| You have reached the final milestone for the demo. To explore additional | ||
| levels, please{" "} | ||
| <a href="mailto:sunbird@tekditechnologies.com">click here</a> to contact | ||
|
||
| the ALL support team. | ||
| </> | ||
| ), | ||
| }; | ||
|
|
||
| export const MILESTONE_LEVEL = { | ||
| DEMO_MAX_MILESTONE_LEVEL: "m5", | ||
|
||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ import { Typography } from "@mui/material"; | |
| import config from "../../utils/urlConstants.json"; | ||
| import { MessageDialog } from "../../components/Assesment/Assesment"; | ||
| import { Log } from "../../services/telementryService"; | ||
| import { POPUP_TEXT_CONSTANT, MILESTONE_LEVEL } from "../../config/config"; | ||
|
|
||
| const Practice = () => { | ||
| const [page, setPage] = useState(""); | ||
|
|
@@ -248,6 +249,15 @@ const Practice = () => { | |
| ); | ||
| } | ||
| setLocalData("previous_level", getSetData.data.previous_level); | ||
| if ( | ||
| getSetData.data.previous_level === | ||
|
||
| MILESTONE_LEVEL.DEMO_MAX_MILESTONE_LEVEL | ||
| ) { | ||
| setOpenMessageDialog({ | ||
| message: POPUP_TEXT_CONSTANT.DEMO_MAX_MILESTONE_POPUP_TEXT, | ||
| dontShowHeader: true, | ||
| }); | ||
| } | ||
| if (getSetData.data.sessionResult === "pass") { | ||
| try { | ||
| await axios.post( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this URL for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from beginning it s the same