show submitted reps on dashboard
This commit is contained in:
@@ -44,7 +44,9 @@ const TopThree = (props) => {
|
||||
|
||||
let topthreeRow = [];
|
||||
|
||||
let showTopThreeArr = showTopThree.value;
|
||||
let showTopThreeArr;
|
||||
|
||||
showTopThreeArr = props.myReps ? showTopThree : showTopThree.value;
|
||||
|
||||
Object.keys(showTopThreeArr).map((key, index) => {
|
||||
let createdDate = parseInt(showTopThreeArr[key].createdon);
|
||||
@@ -236,8 +238,6 @@ const TopThree = (props) => {
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
{/* {(topThreeType == "awaitingSubmission" ||
|
||||
topThreeType == "watchedCases") && ( */}
|
||||
<div>
|
||||
<b>{t("myportal:appeal-type-label")}:</b>{" "}
|
||||
{router.locale == "cy"
|
||||
@@ -336,8 +336,31 @@ const TopThree = (props) => {
|
||||
{" "}
|
||||
{raisedDate(showTopThreeArr[key].createdon)}
|
||||
</div>{" "}
|
||||
{topThreeType == "watchedCases" &&
|
||||
props.myReps &&
|
||||
showTopThreeArr[key].pinswg_representationsubmitted !=
|
||||
null && (
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:representation-submitted")}:</b>
|
||||
{" "}
|
||||
{raisedDate(
|
||||
showTopThreeArr[key]
|
||||
.pinswg_representationsubmitted
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{topThreeType == "watchedCases" &&
|
||||
props.myReps &&
|
||||
showTopThreeArr[key].pinswg_representationtype !=
|
||||
null && (
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:representation-type")}:</b>
|
||||
{" "}
|
||||
{showTopThreeArr[key].pinswg_representationtype}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{topThreeType == "watchedCases" && (
|
||||
{topThreeType == "watchedCases" && !props.myReps && (
|
||||
<div className="">
|
||||
<button
|
||||
title={t("case:you-have-stopped-watching-label")}
|
||||
|
||||
Reference in New Issue
Block a user