hide reps button & add rich text for reps

This commit is contained in:
2022-10-12 12:23:26 +01:00
parent 33053a578b
commit 96387db56e
22 changed files with 531 additions and 79 deletions
+9 -4
View File
@@ -65,6 +65,9 @@ const CaseSummary = (props) => {
showMap,
} = props;
const { data: session, status } = useSession();
//console.log("session status:", status, session);
const noRepresentationLink = ["/dnsdetails", "/dns/[developmentName]"];
let setCaseQueryObj = props[currentType];
@@ -276,8 +279,12 @@ const CaseSummary = (props) => {
<div className="govuk-grid-row">
<div className="govuk-grid-column-full">
<div className="govuk-button-group">
{noRepresentationLink.includes(router.pathname) ==
true ? (
{props.currentView.caseReference.showreps ==
"false" ? (
""
) : noRepresentationLink.includes(
router.pathname
) == true ? (
""
) : (
<Link href="/myportal/representation">
@@ -706,8 +713,6 @@ const CaseSummary = (props) => {
);
}
const { data: session, status } = useSession();
//console.log("session status:", status, session);
return (
<>
{showDetailsBlock}