Back to React

This commit is contained in:
Gregory Schier
2023-03-13 09:50:49 -07:00
parent 03461ffa77
commit 90c873e37e
25 changed files with 377 additions and 616 deletions

View File

@@ -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} />
);
}