removed link for res awiating submissin making it onclick instead
This commit is contained in:
@@ -193,21 +193,26 @@ const TopThree = (props) => {
|
||||
{showTopThreeArr[key].hasOwnProperty("repComplete") ? (
|
||||
<b>{showTopThreeArr[key].pinswg_name}</b>
|
||||
) : (
|
||||
<Link
|
||||
<span
|
||||
// href="#"
|
||||
href={{
|
||||
pathname:
|
||||
router.locale == "cy"
|
||||
? "/fymhorth/representation"
|
||||
: "/myportal/representation",
|
||||
query: {
|
||||
case: showTopThreeArr[key].ticketnumber,
|
||||
state: "edit",
|
||||
created:
|
||||
showTopThreeArr[key].repfile_name,
|
||||
},
|
||||
}}
|
||||
// href={{
|
||||
// pathname:
|
||||
// router.locale == "cy"
|
||||
// ? "/fymhorth/representation"
|
||||
// : "/myportal/representation",
|
||||
// query: {
|
||||
// case: showTopThreeArr[key].ticketnumber,
|
||||
// state: "edit",
|
||||
// created:
|
||||
// showTopThreeArr[key].repfile_name,
|
||||
// },
|
||||
// }}
|
||||
className="govuk-link--no-underline"
|
||||
style={{
|
||||
color: "#0360a6",
|
||||
cursor: "pointer",
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
data-id={index}
|
||||
onClick={() => {
|
||||
setCurrentReference({
|
||||
@@ -223,10 +228,24 @@ const TopThree = (props) => {
|
||||
"repDetails": showTopThreeArr[key],
|
||||
});
|
||||
isLPA && setRepresentationCapacity("LPA");
|
||||
router.push({
|
||||
pathname:
|
||||
router.locale == "cy"
|
||||
? "/fymhorth/representation"
|
||||
: "/myportal/representation",
|
||||
query: {
|
||||
case: showTopThreeArr[key]
|
||||
.ticketnumber,
|
||||
state: "edit",
|
||||
created:
|
||||
showTopThreeArr[key]
|
||||
.repfile_name,
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
{showTopThreeArr[key].pinswg_name}
|
||||
</Link>
|
||||
</span>
|
||||
)}
|
||||
{!showTopThreeArr[key].hasOwnProperty(
|
||||
"repComplete"
|
||||
|
||||
Reference in New Issue
Block a user