From 4ecaf3c6cb185d7cc0a5cbc243b9a3bf4390f78a Mon Sep 17 00:00:00 2001 From: Lemon-miaow Date: Thu, 2 Jul 2026 02:23:56 +0800 Subject: [PATCH] refactor(panel): set defaultOpen parameter of whitelist card to false --- panel/src/components/players/WhitelistSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/src/components/players/WhitelistSection.tsx b/panel/src/components/players/WhitelistSection.tsx index f9fedb4..d8e6459 100644 --- a/panel/src/components/players/WhitelistSection.tsx +++ b/panel/src/components/players/WhitelistSection.tsx @@ -19,7 +19,7 @@ import { * entry, and read the current list. Built to stay usable at a few hundred names — * a live count, a filter and paging (via usePagedNames) once the list is long * enough to need them, and a two-step remove so a name never vanishes on one tap. */ -export function WhitelistSection({ name, defaultOpen = true }: { name: string; defaultOpen?: boolean }) { +export function WhitelistSection({ name, defaultOpen = false }: { name: string; defaultOpen?: boolean }) { const { t } = useTranslation("servers"); const { data, error, loading, reload } = useAsync( () => api.accessWhitelistList(name),