chore(lint): unblock next lint and fix current eslint errors
This commit is contained in:
@@ -727,11 +727,11 @@ const RepCompleteSubmit = (props) => {
|
||||
{" "}
|
||||
</strong>
|
||||
</div>{" "}
|
||||
<a className="govuk-link" href="/">
|
||||
<Link className="govuk-link" href="/">
|
||||
{t(
|
||||
"myrepresentations:return-to-myportal-link"
|
||||
)}
|
||||
</a>
|
||||
</Link>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
export function capitalizeFirstLetter(val) {
|
||||
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
||||
@@ -44,11 +43,9 @@ export function hasOwnPropertyAndNotNull(obj, property) {
|
||||
return obj.hasOwnProperty(property) && obj[property] !== null;
|
||||
}
|
||||
|
||||
export function linkedCasesList(linkedCasesReference) {
|
||||
export function linkedCasesList(linkedCasesReference, locale) {
|
||||
//console.log(linkedCasesReference);
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
linkedCasesReference = linkedCasesReference.value || [];
|
||||
|
||||
return (
|
||||
@@ -59,7 +56,7 @@ export function linkedCasesList(linkedCasesReference) {
|
||||
<li key={key}>
|
||||
<Link
|
||||
href={
|
||||
router.locale == "cy"
|
||||
locale == "cy"
|
||||
? "/canlyniadauchwilio?q=" +
|
||||
item.title +
|
||||
"&lk=1"
|
||||
|
||||
Reference in New Issue
Block a user