updated drop downs

This commit is contained in:
2021-10-29 16:29:04 +01:00
parent 73d98d2097
commit c1448b6ff6
16 changed files with 204 additions and 101 deletions
+24 -1
View File
@@ -140,7 +140,30 @@ const TopThree = (props) => {
);
});
return <>{topthreeRow}</>;
let noRecordsLabel = "";
switch (topThreeType) {
case "watchedCases":
noRecordsLabel = "You are not watching any cases";
break;
case "myRepresentations":
noRecordsLabel = "You have no representations";
break;
case "myCases":
noRecordsLabel = "You have no cases";
break;
case "awaitingSubmission":
noRecordsLabel = "You have no awaiting submissions";
break;
}
return (
<>
{topthreeRow.length == 0 ? (
<div>{noRecordsLabel}</div>
) : (
topthreeRow
)}
</>
);
};
const mapDispatchToProps = (dispatch) => {