feat: add title attribute to edit and delete mii buttons
This commit is contained in:
parent
953e46a042
commit
e17b3908ae
3 changed files with 3 additions and 3 deletions
|
|
@ -171,7 +171,7 @@ export default async function MiiPage({ params }: Props) {
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div className="flex gap-1 text-4xl justify-end text-orange-400">
|
<div className="flex gap-1 text-4xl justify-end text-orange-400">
|
||||||
<Link href={`/edit/${mii.id}`}>
|
<Link href={`/edit/${mii.id}`} title="Edit Mii">
|
||||||
<Icon icon="mdi:pencil" />
|
<Icon icon="mdi:pencil" />
|
||||||
</Link>
|
</Link>
|
||||||
<DeleteMiiButton miiId={mii.id} miiName={mii.name} likes={mii._count.likedBy ?? 0} />
|
<DeleteMiiButton miiId={mii.id} miiName={mii.name} likes={mii._count.likedBy ?? 0} />
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export default function DeleteMiiButton({ miiId, miiName, likes }: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<button onClick={() => setIsOpen(true)} className="cursor-pointer">
|
<button onClick={() => setIsOpen(true)} title="Delete Mii" className="cursor-pointer">
|
||||||
<Icon icon="mdi:trash" />
|
<Icon icon="mdi:trash" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ export default function MiiList({ isLoggedIn, userId, sessionUserId }: Props) {
|
||||||
|
|
||||||
{userId && sessionUserId == userId && (
|
{userId && sessionUserId == userId && (
|
||||||
<div className="flex gap-1 text-2xl justify-end text-zinc-400">
|
<div className="flex gap-1 text-2xl justify-end text-zinc-400">
|
||||||
<Link href={`/edit/${mii.id}`}>
|
<Link href={`/edit/${mii.id}`} title="Edit Mii">
|
||||||
<Icon icon="mdi:pencil" />
|
<Icon icon="mdi:pencil" />
|
||||||
</Link>
|
</Link>
|
||||||
<DeleteMiiButton miiId={mii.id} miiName={mii.name} likes={mii.likes} />
|
<DeleteMiiButton miiId={mii.id} miiName={mii.name} likes={mii.likes} />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue