feat: action buttons

This commit is contained in:
TrèsAbhi committed 2025-10-14 12:19:28 -05:00
1 parent e1a6e4e38d
commit 222b690fba
5 files changed
+55 -15

No files matched your search

@@ -8,7 +8,13 @@ interface Props extends PlaylistEntry {
index: number;
}
export function PlaylistTankEntry({ tank, checked, last, index }: Props) {
export function PlaylistTankEntry({
tank,
checked,
last,
battles,
index,
}: Props) {
const { locale, strings } = useLocale();
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
const nowDays = Date.now() / (1000 * 60 * 60 * 24);
@@ -26,6 +32,8 @@ export function PlaylistTankEntry({ tank, checked, last, index }: Props) {
: strings.website.tools.playlist.table.never}
</Table.Cell>
<Table.Cell>{battles}</Table.Cell>
<Table.Cell
onClick={() => {
Playlist.mutate((draft) => {