mirror of
https://github.com/YuzuZensai/VRC-Circle.git
synced 2026-09-13 19:08:52 +00:00
👷 ci: add build workflow
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user