@@ -15,6 +15,7 @@ import {
15 getGrantsTypes,
15 getGrantsTypes,
16 getPostBySlug,
16 getPostBySlug,
17} from "../lib/lib";
17} from "../lib/lib";
18+import { useEffect } from "react";
19function isArray(arr) {
20function isArray(arr) {
20 return Array.isArray(arr);
21 return Array.isArray(arr);
@@ -33,10 +34,12 @@ export default function Grants({ posts, categories, types, search }) {
33 if (status === undefined) {
34 if (status === undefined) {
34 status = "open";
35 status = "open";
36 function push(toQuery) {
38 function push(toQuery) {
37 router.push(
39 router.push(
39 pathname: "/grants",
41 pathname: "/grants",
40 query: toQuery,
43 query: toQuery,