updated file name prefixes
This commit is contained in:
@@ -50,6 +50,7 @@ let RepLPA = (props) => {
|
||||
questionnaireCount,
|
||||
setQuestionnaireCount,
|
||||
setRepFileName,
|
||||
updateRepresentation,
|
||||
} = props;
|
||||
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
||||
const files = acceptedFiles.map((file) => (
|
||||
@@ -384,7 +385,11 @@ let RepLPA = (props) => {
|
||||
props.props.caseReference
|
||||
}
|
||||
hint={"sdsd"}
|
||||
fileList={[]}
|
||||
fileList={
|
||||
props.props.props.form[
|
||||
"representationForm"
|
||||
].values.filesList || []
|
||||
}
|
||||
setFilesForRepresentation={[]}
|
||||
containerID={
|
||||
props.props.props.accountDetails
|
||||
@@ -406,17 +411,14 @@ let RepLPA = (props) => {
|
||||
_.has(formObj, "values", "representationType")) &&
|
||||
props.representationType == "Questionnaire" && (
|
||||
<>
|
||||
{showQuestionnaireSection}
|
||||
{showQuestionnaireSection <=
|
||||
{showQuestionnaireSection <
|
||||
questionnaireCount && (
|
||||
<button
|
||||
// type="submit"
|
||||
type="submit"
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
>
|
||||
{t("common:continue-button")} www
|
||||
{showQuestionnaireSection} -{" "}
|
||||
{questionnaireCount}
|
||||
{t("common:continue-button")}
|
||||
</button>
|
||||
// <a
|
||||
// href="#"
|
||||
@@ -437,16 +439,24 @@ let RepLPA = (props) => {
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
>
|
||||
{t("common:continue-button")} -{" "}
|
||||
{showQuestionnaireSection}
|
||||
{t("common:continue-button")}
|
||||
</button>
|
||||
)}
|
||||
{showQuestionnaireSection > 1 && (
|
||||
<a
|
||||
onClick={() => {
|
||||
setShowQuestionnaireSection(
|
||||
showQuestionnaireSection - 1
|
||||
);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
setRepFileName(
|
||||
props.formObj[
|
||||
"representationForm"
|
||||
].values
|
||||
),
|
||||
setShowQuestionnaireSection(
|
||||
showQuestionnaireSection - 1
|
||||
);
|
||||
}}
|
||||
className="govuk-link"
|
||||
>
|
||||
@@ -464,7 +474,7 @@ let RepLPA = (props) => {
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
>
|
||||
{t("common:continue-button")} ==
|
||||
{t("common:continue-button")}
|
||||
</button>
|
||||
<a
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user