-
💄 refactor: Users table UI & state handling · ba7ade4dSummary of changes 1. UI clean-up • Removed all `prefixIcon` props from `Tag` components in `UsersColumnDefs.js`. • Corrected i18n string in invite info (`${t('邀请人')}: …`). 2. “Statistics” column overhaul • Added a Switch (enable / disable) and quota Progress bar, mirroring the Tokens table design. • Moved enable / disable action out of the “More” dropdown; user status is now toggled directly via the Switch. • Disabled the Switch for deleted (注销) users. • Restored column title to “Statistics” to avoid duplication. 3. State consistency / refresh • Updated `manageUser` in `useUsersData.js` to: – set `loading` while processing actions; – update users list immutably (new objects & array) to trigger React re-render. 4. Imports / plumbing • Added `Progress` and `Switch` to UI imports in `UsersColumnDefs.js`. These changes streamline the user table’s appearance, align interaction patterns with the token table, and ensure immediate visual feedback after user status changes.t0ng7u committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| channels | Loading commit data... | |
| mj-logs | Loading commit data... | |
| redemptions | Loading commit data... | |
| task-logs | Loading commit data... | |
| tokens | Loading commit data... | |
| usage-logs | Loading commit data... | |
| users | Loading commit data... | |
| ModelPricing.js | Loading commit data... |