Files
pedwfrontend/components/representation.js
T
Robert Bond a25ab433a6 Merged PR 2279: passed in case customer email in search and update rep logic to stop non owne...
passed in case customer email in search and update rep logic to stop non owners rasing reps on other owners cases

Related work items: #22095
2026-04-28 12:00:12 +00:00

53 lines
2.0 KiB
JavaScript

import useTranslation from "next-translate/useTranslation";
import { useRouter } from "next/router";
import Summary from "./case/representation";
const CaseRepresentation = (props) => {
let { t } = useTranslation();
const router = useRouter();
const { locale } = router;
return (
<main
className="govuk-main-wrapper govuk-main-wrapper--auto-spacing"
id="main-content"
role="main"
>
<div className="govuk-grid-row">
<div className="govuk-grid-column-full">
<Summary
isAppellant={
props.props.accountDetails.accountDetails
.emailaddress1 ===
props.searchResultsObj?.value?.[0]
?.customerid_contact?.emailaddress1
}
myCases={props.myCases}
myRepresentations={props.myRepresentations}
watchedCases={props.watchedCases}
awaitingSubmission={props.awaitingSubmission}
caseReference={props.caseReference}
ticketnumber={props.ticketnumber}
currentType={props.currentType}
searchResultsObj={props.searchResultsObj}
searchDetailsObj={props.searchDetailsObj}
searchString={props.searchString}
props={props.props}
showQuestionnaireSection={
props.showQuestionnaireSection
}
setShowQuestionnaireSection={
props.setShowQuestionnaireSection
}
setCurrentReference={props.setCurrentReference}
docsOffline={props.docsOffline}
/>
</div>
</div>
</main>
);
};
export default CaseRepresentation;