From e7b09e4d51f2fb2a7066ac23f4d0c44bb7473498 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 9 Mar 2020 21:24:47 -0500 Subject: [PATCH] WIP: update Button icon input type --- web/src/components/LinkButton.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/components/LinkButton.tsx b/web/src/components/LinkButton.tsx index 20d51c17e..7a3fe5e82 100644 --- a/web/src/components/LinkButton.tsx +++ b/web/src/components/LinkButton.tsx @@ -1,4 +1,3 @@ -import { Icon as LegacyIcon } from "@ant-design/compatible"; import { Button } from "antd"; import { ButtonType } from "antd/lib/button"; import React from "react"; @@ -8,7 +7,7 @@ interface Props { text: string; title?: string; type?: ButtonType; - icon?: string; + icon?: React.ReactNode; } export const LinkButton = (props: Props) => @@ -19,7 +18,7 @@ export const LinkButton = (props: Props) => type={props.type || "default"} block style={{ borderLeftColor: "rgb(217, 217, 217)" }} //HACK: override buggy style in antd - icon={} + icon={props.icon} target="_blank" rel="noopener noreferrer" >