on master help sign in
grants: fix links to deliverables
1994377Matilde Park
components/gateway/ResourceCard.js+2−1
@@ -1,6 +1,7 @@
1import Link from "next/link";
1import Link from "next/link";
2import GatewayImage from "./Image";
2import GatewayImage from "./Image";
3import classNames from "classnames";
3import classNames from "classnames";
4+import { capitalize } from "@urbit/foundation-design-system";
4
5
5const ResourceCard = ({ type, shortcode, title, description = "", color, image, full }) => (
6const ResourceCard = ({ type, shortcode, title, description = "", color, image, full }) => (
6 <Link href={`/${type}s/${shortcode}`}>
7 <Link href={`/${type}s/${shortcode}`}>
@@ -13,7 +14,7 @@ const ResourceCard = ({ type, shortcode, title, description = "", color, image,
13 <a className="font-semibold">{title}</a>
14 <a className="font-semibold">{title}</a>
14 <p className="hidden lg:block">{description}</p>
15 <p className="hidden lg:block">{description}</p>
15 </div>
16 </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>
17 </>
18 </>
18 : <a className="font-semibold">{title}</a>}
19 : <a className="font-semibold">{title}</a>}
19 </div>
20 </div>
pages/grants/[slug].js+2−1
@@ -95,7 +95,8 @@ export default function Grant({ post, markdown, match, search }) {
95 image={match.data.image}
95 image={match.data.image}
96 color={match.data.bgColor || "#000000"}
96 color={match.data.bgColor || "#000000"}
97 description={match.data?.description || ""}
97 description={match.data?.description || ""}
98− type="Application"
98+ type="application"
99+ shortcode={post.extra.deliverable}
99 full
100 full
100 />
101 />
101 }
102 }