mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:28 +01:00
Back to React
This commit is contained in:
@@ -3,16 +3,11 @@ import type { ButtonProps } from './Button';
|
||||
import { Button } from './Button';
|
||||
|
||||
type Props = ButtonProps & {
|
||||
href: string;
|
||||
to: string;
|
||||
};
|
||||
|
||||
export function ButtonLink({ href, className, ...buttonProps }: Props) {
|
||||
export function ButtonLink({ to, className, ...buttonProps }: Props) {
|
||||
return (
|
||||
<Button
|
||||
href={href}
|
||||
className={classnames(className, 'w-full')}
|
||||
tabIndex={-1}
|
||||
{...buttonProps}
|
||||
/>
|
||||
<Button to={to} className={classnames(className, 'w-full')} tabIndex={-1} {...buttonProps} />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user