From 4c0628612f7611d213decc6e75d021843c49c3c6 Mon Sep 17 00:00:00 2001 From: EleanorMao Date: Mon, 24 Apr 2023 09:17:51 +0800 Subject: [PATCH] feat: add button type --- src/components/Button/Button.tsx | 2 +- src/styles/reset.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 7828a9a..c076041 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -2,7 +2,7 @@ import React, { FC } from 'react' import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd' export type ButtonProps = Omit & { - type?: 'primary' | 'link' | 'text' + type?: 'primary' | 'default' | 'link' | 'text' } export const Button: FC = (props) => { return diff --git a/src/styles/reset.css b/src/styles/reset.css index 854a973..88a17da 100644 --- a/src/styles/reset.css +++ b/src/styles/reset.css @@ -7,6 +7,10 @@ html, body { font-weight: 500 !important; } +.ant-btn-default { + border-color: #FF5A0C; +} + .ant-btn.ant-btn-icon-only { width: 50px !important; height: 50px !important;