feat: add button type
This commit is contained in:
parent
c196059515
commit
4c0628612f
@ -2,7 +2,7 @@ import React, { FC } from 'react'
|
|||||||
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd'
|
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd'
|
||||||
|
|
||||||
export type ButtonProps = Omit<AntdButtonProps, 'danger' | 'ghost' | 'shape' | 'size' | 'type'> & {
|
export type ButtonProps = Omit<AntdButtonProps, 'danger' | 'ghost' | 'shape' | 'size' | 'type'> & {
|
||||||
type?: 'primary' | 'link' | 'text'
|
type?: 'primary' | 'default' | 'link' | 'text'
|
||||||
}
|
}
|
||||||
export const Button: FC<ButtonProps> = (props) => {
|
export const Button: FC<ButtonProps> = (props) => {
|
||||||
return <AntdButton type="primary" {...props} />
|
return <AntdButton type="primary" {...props} />
|
||||||
|
@ -7,6 +7,10 @@ html, body {
|
|||||||
font-weight: 500 !important;
|
font-weight: 500 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-btn-default {
|
||||||
|
border-color: #FF5A0C;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-btn.ant-btn-icon-only {
|
.ant-btn.ant-btn-icon-only {
|
||||||
width: 50px !important;
|
width: 50px !important;
|
||||||
height: 50px !important;
|
height: 50px !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user