mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 08:34:18 +01:00
Fix ButtonLink and edit request names
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import classnames from 'classnames';
|
||||
import { Link } from 'preact-router';
|
||||
import type { ButtonProps } from './Button';
|
||||
import { Button } from './Button';
|
||||
|
||||
@@ -8,10 +7,12 @@ type Props = ButtonProps & {
|
||||
};
|
||||
|
||||
export function ButtonLink({ href, className, ...buttonProps }: Props) {
|
||||
const linkProps = { href };
|
||||
return (
|
||||
<Link {...linkProps}>
|
||||
<Button className={classnames(className, 'w-full')} tabIndex={-1} {...buttonProps} />
|
||||
</Link>
|
||||
<Button
|
||||
href={href}
|
||||
className={classnames(className, 'w-full')}
|
||||
tabIndex={-1}
|
||||
{...buttonProps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user