mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
New admin section.
This commit is contained in:
parent
b78ff3b477
commit
ce1f6c3618
44 changed files with 515 additions and 157 deletions
|
|
@ -17,13 +17,20 @@ export function LinkButton({
|
|||
scroll = true,
|
||||
target,
|
||||
children,
|
||||
isDisabled,
|
||||
...props
|
||||
}: LinkButtonProps) {
|
||||
const { dir } = useLocale();
|
||||
|
||||
return (
|
||||
<Button {...props} variant={variant} asChild>
|
||||
<Link href={href} dir={dir} scroll={scroll} target={target}>
|
||||
<Button {...props} variant={variant} isDisabled={isDisabled} asChild>
|
||||
<Link
|
||||
href={href}
|
||||
dir={dir}
|
||||
scroll={scroll}
|
||||
target={target}
|
||||
style={{ pointerEvents: isDisabled ? 'none' : undefined }}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue