on master help sign in
grants: fix links to deliverables
commit19943777c2fde33f4e6e5990b41ac998099fbdd1 authorMatilde Park <matilde.park@urbit.org> dateTue 1 Nov 2022, 13:19 (4 years ago) parent5e5ec23
2 files changed+4−2
components/gateway/ResourceCard.js+2−1 pages/grants/[slug].js+2−1
components/gateway/ResourceCard.js+2−1
@@ -1,6 +1,7 @@
11import Link from "next/link";
22import GatewayImage from "./Image";
33import classNames from "classnames";
4+import { capitalize } from "@urbit/foundation-design-system";
45
56const ResourceCard = ({ type, shortcode, title, description = "", color, image, full }) => (
67 <Link href={`/${type}s/${shortcode}`}>
@@ -13,7 +14,7 @@ const ResourceCard = ({ type, shortcode, title, description = "", color, image,
1314 <a className="font-semibold">{title}</a>
1415 <p className="hidden lg:block">{description}</p>
1516 </div>
16− <a className="button-lg bg-green-400 text-white shrink-0">View {type}</a>
17+ <a className="button-lg bg-green-400 text-white shrink-0">View {capitalize(type)}</a>
1718 </>
1819 : <a className="font-semibold">{title}</a>}
1920 </div>
pages/grants/[slug].js+2−1
@@ -95,7 +95,8 @@ export default function Grant({ post, markdown, match, search }) {
9595 image={match.data.image}
9696 color={match.data.bgColor || "#000000"}
9797 description={match.data?.description || ""}
98− type="Application"
98+ type="application"
99+ shortcode={post.extra.deliverable}
99100 full
100101 />
101102 }