From 3440fa5c59dc2e4855fe7939a28da201ebbc7525 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Mon, 22 Mar 2021 01:31:09 +0100 Subject: [PATCH] Update mdx button props --- components/MDXButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/MDXButton.tsx b/components/MDXButton.tsx index c2b7b7d..9d3ba7d 100644 --- a/components/MDXButton.tsx +++ b/components/MDXButton.tsx @@ -35,11 +35,12 @@ const Btn = styled.button` } `; -const MDXButton: FC = ({ +const MDXButton: FC = ({ variant = 'text', type = 'button', link, children, + disabled, className }) => { const { dark } = useContext(DarkModeContext); @@ -52,6 +53,7 @@ const MDXButton: FC = ({ onClick={() => { if (link) window.open(link, '_blank'); }} + disabled={disabled} className={className} > {children}