on master help sign in
grants: permalinks jump down to view grants page
commitf2cfbd9d70db5d38ea7a6636a555e9e152493fa6 authorMatilde Park <matilde.park@urbit.org> dateWed 11 May 2022, 18:37 (4 years ago) parentcedf6d4
1 file changed+3
pages/grants.js+3
pages/grants.js+3
@@ -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 "",