Skip to content

Commit

Permalink
make 12 the default actions query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-musau committed Feb 21, 2025
1 parent ff71c0b commit 033c268
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class GovernanceActionsService {
filters: string[],
sort: string,
page: number = 1,
limit: number = 10
limit: number = 12
) {
const searchTerm = search ? search.trim() : "";
const filterArray = filters?.length > 0 ? filters : null;
Expand Down
7 changes: 4 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"react-dom": "^18.3.1",
"react-markdown": "^9.0.3",
"react-router-dom": "^6.23.1",
"react-query": "^3.39.3",
"rollup": "^4.28.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
Expand All @@ -70,8 +71,7 @@
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
"axios": "^1.7.9",
"bech32": "^2.0.0",
"buffer": "^6.0.3",
"react-query": "^3.39.3"
"buffer": "^6.0.3"
},
"peerDependencies": {
"@emotion/react": "^11.11.4",
Expand All @@ -81,7 +81,8 @@
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"react-router-dom": "^6.23.1",
"sass": "^1.77.2"
"sass": "^1.77.2",
"react-query": "^3.39.3"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
2 changes: 1 addition & 1 deletion ui/src/Components/Molecules/GovernanceActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GovernanceActionCard from "./GovernanceActionCard";
import { ActionsEmptyState } from "./ActionsEmptyState";
import { useGetGovernanceActions } from "../../hooks/useGetGovernanceActionsQuery";

const ITEMS_PER_PAGE = 10;
const ITEMS_PER_PAGE = 12;

const GovernanceActionsList = () => {
const [searchParams] = useSearchParams();
Expand Down

0 comments on commit 033c268

Please sign in to comment.