update default to 20 per page

This commit is contained in:
Maidul Islam
2024-09-14 23:26:30 -04:00
parent 1fb644af4a
commit ea480c222b
4 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ type Props = {
) => void;
};
const INIT_PER_PAGE = 50;
const INIT_PER_PAGE = 20;
export const IdentityTable = ({ handlePopUpOpen }: Props) => {
const router = useRouter();

View File

@@ -56,7 +56,7 @@ import { IdentityModal } from "./components/IdentityModal";
import { IdentityRoleForm } from "./components/IdentityRoleForm";
const MAX_ROLES_TO_BE_SHOWN_IN_TABLE = 2;
const INIT_PER_PAGE = 50;
const INIT_PER_PAGE = 20;
const formatRoleName = (role: string, customRoleName?: string) => {
if (role === ProjectMembershipRole.Custom) return customRoleName;
if (role === ProjectMembershipRole.Member) return "Developer";

View File

@@ -47,7 +47,7 @@ const LOADER_TEXT = [
"Getting secret import links..."
];
const INIT_PER_PAGE = 50;
const INIT_PER_PAGE = 20;
export const SecretMainPage = () => {
const { t } = useTranslation();
const { currentWorkspace, isLoading: isWorkspaceLoading } = useWorkspace();

View File

@@ -85,7 +85,7 @@ enum RowType {
Secret = "Secret"
}
const INIT_PER_PAGE = 50;
const INIT_PER_PAGE = 20;
export const SecretOverviewPage = () => {
const { t } = useTranslation();