fix removing items

This commit is contained in:
marlon-erler
2024-07-20 03:34:54 +02:00
parent 58348f78dd
commit bc34e4d7fe
7 changed files with 101 additions and 12 deletions
+19
View File
@@ -0,0 +1,19 @@
import * as React from "bloatless-react";
import { translations } from "../translations";
export function DeletableListItem(text: string, ondelete: () => void) {
return (
<div class="tile flex-row justify-apart align-center padding-0">
<span class="padding-h">{text}</span>
<button
class="danger"
aria-label={translations.general.deleteItemButtonAudioLabel}
on:click={ondelete}
>
<span class="icon">delete</span>
</button>
</div>
);
}