Merged PR 2261: added in text and ui redesign for rep type selection
added in text and ui redesign for rep type selection Related work items: #22574
This commit is contained in:
@@ -58,6 +58,10 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
const [savingStatus, setSavingStatus] = useState(false);
|
||||
const [finaliseAppealProcess, setFinaliseAppealProcess] = useState(false);
|
||||
const [representationTypeConfirmed, setRepresentationTypeConfirmed] =
|
||||
useState(
|
||||
!!props?.currentView?.caseReference?.repDetails?.representationType
|
||||
);
|
||||
|
||||
//const [questionnaireCount, setQuestionnaireCount] = useState(0);
|
||||
|
||||
@@ -586,7 +590,10 @@ let MakeRepresentation = (props) => {
|
||||
updateRepresentation,
|
||||
setSavingStatus,
|
||||
savingStatus,
|
||||
setCurrentReference
|
||||
setCurrentReference,
|
||||
onRepresentationTypeChange: () =>
|
||||
setRepresentationTypeConfirmed(false),
|
||||
onTypeSelectionConfirmed: () => setRepresentationTypeConfirmed(true)
|
||||
};
|
||||
|
||||
const { controlKey } = resolveRepresentationControlKey({
|
||||
@@ -1108,7 +1115,7 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
const isQuestionnaire =
|
||||
formObj?.representationForm?.values?.representationType ===
|
||||
"Questionnaire";
|
||||
"Questionnaire" && representationTypeConfirmed;
|
||||
|
||||
const appealIsConsultation = appealType === 846040002;
|
||||
const appealIsLocalImpact =
|
||||
|
||||
Reference in New Issue
Block a user