diff --git a/src/components/account/AccountSidebar.tsx b/src/components/account/AccountSidebar.tsx index f285fd4..4112d03 100644 --- a/src/components/account/AccountSidebar.tsx +++ b/src/components/account/AccountSidebar.tsx @@ -59,8 +59,8 @@ const AccountSidebar = (props: AccountSidebarProps) => { > {(account) => { - const selected = account.id === props.selectedAccountId; - const expanded = account.id === props.expandedAccountId; + const selected = () => account.id === props.selectedAccountId; + const expanded = () => account.id === props.expandedAccountId; const platformLabel = props.hostLabels[account.host] ?? account.host; const statusLabel = @@ -70,13 +70,13 @@ const AccountSidebar = (props: AccountSidebarProps) => { return (
@@ -100,14 +100,6 @@ const AccountSidebar = (props: AccountSidebarProps) => { 学号:{account.user.id}

-
- - {statusLabel} - - - {expanded ? "收起" : "展开"} - -
- +

学院:{account.user.dept}

班级:{account.user.class}

@@ -127,6 +119,7 @@ const AccountSidebar = (props: AccountSidebarProps) => {

站点:{account.host}

账号:{account.username || "-"}

课程数:{account.courses.length}

+

课程类型:{statusLabel}