-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DESENG-612: Replaced tenant specific variables with data from backend (…
…#2528) * DESENG-612: Replaced tenant specific variables with data from backend * Updated condition for null values * Fixed build issue
- Loading branch information
1 parent
8baeb45
commit 2b853c6
Showing
11 changed files
with
82 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | |
import { faMessageCheck } from '@fortawesome/pro-solid-svg-icons/faMessageCheck'; | ||
import { faMessageSlash } from '@fortawesome/pro-solid-svg-icons/faMessageSlash'; | ||
import { LanguageState } from 'reduxSlices/languageSlice'; | ||
import { TenantState } from 'reduxSlices/tenantSlice'; | ||
|
||
const CommentReview = () => { | ||
const [submission, setSubmission] = useState<SurveySubmission>(createDefaultSubmission()); | ||
|
@@ -67,6 +68,7 @@ const CommentReview = () => { | |
const { submissionId, surveyId } = useParams(); | ||
const reviewNotes = updatedStaffNote.filter((staffNote) => staffNote.note_type == StaffNoteType.Review); | ||
const internalNotes = updatedStaffNote.filter((staffNote) => staffNote.note_type == StaffNoteType.Internal); | ||
const tenant: TenantState = useAppSelector((state) => state.tenant); | ||
|
||
const MAX_OTHER_REASON_CHAR = 500; | ||
|
||
|
@@ -205,8 +207,8 @@ const CommentReview = () => { | |
}; | ||
|
||
const defaultVerdict = comment_status_id !== CommentStatus.Pending ? comment_status_id : CommentStatus.Approved; | ||
// TODO: LANG-BACKEND - Change the value to show tenant specific | ||
const threatEmailContact = '[email protected]'; | ||
const threatEmailContact = tenant.contact_email; | ||
const threatConactName = tenant.contact_name; | ||
return ( | ||
<MetPageGridContainer> | ||
<EmailPreviewModal | ||
|
@@ -408,11 +410,9 @@ const CommentReview = () => { | |
} | ||
/> | ||
<MetSmallTextOld bold color="#d32f2f" marginLeft={'3em'} mt={'-1em'}> | ||
{translate('comment.admin.review.threatTextOne')} | ||
{/* TODO: LANG-BACKEND - Change the value to show tenant specific // | ||
comment.admin.review.threatContact */} | ||
{'FirstName LastName'} | ||
{translate('comment.admin.review.threatTextTwo')}{' '} | ||
{translate('comment.admin.review.threatTextOne')} | ||
{threatConactName} | ||
{translate('comment.admin.review.threatTextTwo')} | ||
<Link href={`mailto:${threatEmailContact}`}>{threatEmailContact}</Link> | ||
</MetSmallTextOld> | ||
<FormControlLabel | ||
|
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