From ee599d1796f8dc9fe4fcc73638e22bd860b7d799 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Tue, 16 Mar 2021 19:22:36 +0100 Subject: [PATCH] Update mdx button props --- components/MDXButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/MDXButton.tsx b/components/MDXButton.tsx index b3882cc..c2b7b7d 100644 --- a/components/MDXButton.tsx +++ b/components/MDXButton.tsx @@ -4,6 +4,7 @@ import styled from 'styled-components'; interface Props { variant?: 'outline' | 'text' | 'action'; + type?: 'button' | 'submit'; link?: string; dark?: boolean; } @@ -36,6 +37,7 @@ const Btn = styled.button` const MDXButton: FC = ({ variant = 'text', + type = 'button', link, children, className @@ -45,6 +47,7 @@ const MDXButton: FC = ({ return ( { if (link) window.open(link, '_blank');