hide reps button & add rich text for reps
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user