fix(pagination): 统一表格分页与密钥查询交互
统一各中心表格的分页样式与切换行为,保留密钥筛选条件和兑换码搜索分页。 验证:871 项单测、ESLint、Prettier 和本地浏览器验收通过。
This commit is contained in:
@@ -19,7 +19,7 @@ export const useTokensData = (openFluentNotification) => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [activePage, setActivePage] = useState(1);
|
||||
const [tokenCount, setTokenCount] = useState(0);
|
||||
const [pageSize, setPageSize] = useState(5);
|
||||
const [pageSize, setPageSize] = useState(10);
|
||||
const [searching, setSearching] = useState(false);
|
||||
|
||||
// Selection state
|
||||
@@ -319,7 +319,7 @@ export const useTokensData = (openFluentNotification) => {
|
||||
showError(reason);
|
||||
});
|
||||
});
|
||||
useEffect(() => onScopeChange(), [onScopeChange, pageSize]);
|
||||
useEffect(() => onScopeChange(), [onScopeChange]);
|
||||
|
||||
return {
|
||||
// Basic state
|
||||
|
||||
Reference in New Issue
Block a user