Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: button warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Teacatkk committed Jul 19, 2023
1 parent 3ff930b commit e1a8194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import classNames from 'classnames';
import './style.scss';

const Button: React.FC<ButtonProps> = (props: any) => {
const { toolTip, children, ...restProps } = props;
const { disabled, className = null, block, variant } = restProps;
const { toolTip, children, block, ...restProps } = props;
const { disabled, className = null, variant } = restProps;
const toolTipClassName = disabled ? `Button_Tooltip-Div-Button ${className}` : '';
const blockClassName = block ? 'btn-block' : '';

Expand Down

0 comments on commit e1a8194

Please sign in to comment.