simplify admin json by mutating name string for link, add hover state to admin card links
This commit is contained in:
@@ -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}`} />
|
||||
|
||||
Reference in New Issue
Block a user