@@ -15,6 +15,7 @@ import {
1515 getGrantsTypes,
1616 getPostBySlug,
1717} from "../lib/lib";
18+import { useEffect } from "react";
1819
1920function isArray(arr) {
2021 return Array.isArray(arr);
@@ -33,10 +34,12 @@ export default function Grants({ posts, categories, types, search }) {
3334 if (status === undefined) {
3435 status = "open";
3536 }
37+
3638 function push(toQuery) {
3739 router.push(
3840 {
3941 pathname: "/grants",
42+ hash: "view-grants",
4043 query: toQuery,
4144 },
4245 "",