WIP: update Button icon input type

This commit is contained in:
Collin M. Barrett 2020-03-09 21:24:47 -05:00
parent e410d88b78
commit e7b09e4d51

View file

@ -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={<LegacyIcon type={props.icon} />}
icon={props.icon}
target="_blank"
rel="noopener noreferrer"
>