simplify admin json by mutating name string for link, add hover state to admin card links

This commit is contained in:
2022-12-21 21:50:55 +01:00
parent c6ae6cdfa9
commit 75e59fce20
3 changed files with 41 additions and 36 deletions

View File

@@ -51,7 +51,9 @@ const PageInfo = () => {
return (
<Link
key={el.name}
href={el.profilehref ? `/profile/${el.profilehref}` : ""}
href={`/profile/${el.name
.replaceAll(" ", "-")
.toLocaleLowerCase()}`}
>
<article>
<img src={el.img} alt={`zdjęcie profilowe ${el.name}`} />