👷 ci: add build workflow

This commit is contained in:
2026-06-30 21:55:45 +07:00
parent 2779b62f31
commit 2b29576c83
5 changed files with 139 additions and 5 deletions
@@ -395,7 +395,8 @@ function FavoritesTab({ filter, searching }: { filter: AvatarFilter; searching:
const toggle = (id: string) =>
setSelected((s) => {
const next = new Set(s);
next.has(id) ? next.delete(id) : next.add(id);
if (next.has(id)) next.delete(id);
else next.add(id);
return next;
});
@@ -429,7 +430,10 @@ function FavoritesTab({ filter, searching }: { filter: AvatarFilter; searching:
setSelected((s) => {
const next = new Set(s);
const all = ids.every((id) => next.has(id));
for (const id of ids) all ? next.delete(id) : next.add(id);
for (const id of ids) {
if (all) next.delete(id);
else next.add(id);
}
return next;
});
@@ -30,7 +30,8 @@ export function FriendsSidebar({ onOpen }: { onOpen: (id: string) => void }) {
const toggle = (id: string) =>
setCollapsed((prev) => {
const next = new Set(prev);
next.has(id) ? next.delete(id) : next.add(id);
if (next.has(id)) next.delete(id);
else next.add(id);
return next;
});
@@ -102,7 +102,10 @@ export function MyFavoriteWorldsSection({ filter }: { filter?: WorldFilter }) {
setSelected((s) => {
const next = new Set(s);
const all = ids.every((id) => next.has(id));
for (const id of ids) all ? next.delete(id) : next.add(id);
for (const id of ids) {
if (all) next.delete(id);
else next.add(id);
}
return next;
});