Skip to content

Commit

Permalink
remove asLink
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Nov 20, 2024
1 parent 6704a2c commit 53fbf23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/actify/src/components/Buttons/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import variants from './styles/variant.module.css'
interface ButtonProps extends AriaButtonProps {
ref?: React.RefObject<HTMLButtonElement | null>
ripple?: boolean
asLink?: boolean
color?: 'primary' | 'secondary' | 'tertiary' | 'error'
variant?: 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text'
}
Expand All @@ -26,7 +25,6 @@ const Button = (props: ButtonProps) => {
const {
ref,
style,
asLink,
children,
className,
ripple = true,
Expand All @@ -40,8 +38,7 @@ const Button = (props: ButtonProps) => {
return (
<AriaButton
ref={ref}
{...mergeProps(asLink ? null : props, focusProps)}
type={undefined}
{...mergeProps(props, focusProps)}
style={style}
className={clsx(
buttons['btn'],
Expand Down

0 comments on commit 53fbf23

Please sign in to comment.