added dns query included results and details

This commit is contained in:
2021-09-21 12:03:29 +01:00
parent 28abc6876a
commit c2ac1b1a1b
13 changed files with 550 additions and 18 deletions
+13 -11
View File
@@ -21,6 +21,8 @@ const CaseSummary = (props) => {
currentType,
} = props;
const noRepresentationLink = ["/case", "/dnsdetails"];
let setCaseQueryObj = props[currentType];
let setCaseDetailsObj = props[currentType + "Details"];
@@ -122,19 +124,19 @@ const CaseSummary = (props) => {
<div className="govuk-grid-row">
<div className="govuk-grid-column-full">
<div className="govuk-button-group">
{router.pathname != "/case" ? (
<>
<Link href="/representation">
<a className="govuk-button">
{t(
"case:summary-make-representation-label"
)}
</a>
</Link>
</>
) : (
{noRepresentationLink.includes(router.pathname) ==
true ? (
""
) : (
<Link href="/representation">
<a className="govuk-button">
{t(
"case:summary-make-representation-label"
)}
</a>
</Link>
)}
<a
onClick={() => router.back()}
className="govuk-button govuk-button--secondary"