Skip to content

Commit

Permalink
fix: custom tag Button to support all props
Browse files Browse the repository at this point in the history
  • Loading branch information
MildTomato committed Mar 5, 2022
1 parent 31cf3e7 commit fd84fde
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import React, {
forwardRef,
useRef,
useImperativeHandle,
useContext,
} from 'react'
import React, { forwardRef, useRef, useImperativeHandle } from 'react'
import { IconContext } from '../Icon/IconContext'
import { IconLoader } from '../Icon/icons/IconLoader'

Expand Down Expand Up @@ -151,6 +146,7 @@ const Button = forwardRef<RefHandle, ButtonProps>(
if (as) {
return (
<CustomButton
{...props}
className={classes.join(' ')}
onClick={onClick}
style={style}
Expand Down

0 comments on commit fd84fde

Please sign in to comment.