From c9fad01c12c3b2beeb89b2562f4af0e7359d052d Mon Sep 17 00:00:00 2001 From: Roman Grinovski Date: Tue, 19 Sep 2023 10:46:13 +0200 Subject: [PATCH] add contribute button --- src/components/Button/index.tsx | 5 +++-- src/components/HowToContribute/index.tsx | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 81032e69..2f830f7d 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -6,7 +6,7 @@ type ButtonProps = Props & { variant: "primary" | "secondary"; }; -export default function Button({ children, variant, ...rest }: ButtonProps) { +export default function Button({ children, variant, className, ...rest }: ButtonProps) { const Tag = "href" in rest ? Link : "button"; return ( {children} diff --git a/src/components/HowToContribute/index.tsx b/src/components/HowToContribute/index.tsx index 7758e0c9..bcf41174 100644 --- a/src/components/HowToContribute/index.tsx +++ b/src/components/HowToContribute/index.tsx @@ -1,5 +1,6 @@ import React from "react"; -import Link, { Props } from "@docusaurus/Link"; +import Link from "@docusaurus/Link"; +import Button from "../Button"; // TODO enter final links once ready export default function HowToContribute() { @@ -9,7 +10,7 @@ export default function HowToContribute() {

How to use and contribute to OpenTofu?

-

+

The best way to show practical support for the OpenTofu initiative is to contribute. This{" "} + );