16478 right click view all page titles
This commit is contained in:
@@ -31,11 +31,27 @@ const Home = (props) => {
|
||||
return <NoSessionWarning />;
|
||||
}
|
||||
|
||||
const titleKeys = {
|
||||
"myCases": t("common:mycases-viewall-title"),
|
||||
|
||||
"awaitingSubmissionDetails": t(
|
||||
"common:awaitingsubmissiondetails-viewall-title"
|
||||
),
|
||||
"myRepresentations": t("common:myrepresentations-viewall-title"),
|
||||
"watchedCases": t("common:watchedcases-viewall-title"),
|
||||
"mySubmittedReps": t("common:mysubmittedreps-viewall-title"),
|
||||
};
|
||||
|
||||
function whichTitle(key) {
|
||||
return t(titleKeys[key]);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>
|
||||
{t("search:page-title")} - {t("common:service-name")}
|
||||
{whichTitle(router.query?.viewKey)} -{" "}
|
||||
{t("common:service-name")}
|
||||
</title>
|
||||
</Head>
|
||||
<div id="page_wrapper">
|
||||
|
||||
Reference in New Issue
Block a user