mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Reworked settings screens.
This commit is contained in:
parent
c1d301ffdc
commit
0a16ab38e4
58 changed files with 362 additions and 365 deletions
|
|
@ -5,6 +5,7 @@ import { useLocale } from '@/components/hooks';
|
|||
|
||||
export interface LinkButtonProps {
|
||||
href: string;
|
||||
target?: string;
|
||||
scroll?: boolean;
|
||||
variant?: any;
|
||||
children?: ReactNode;
|
||||
|
|
@ -12,8 +13,9 @@ export interface LinkButtonProps {
|
|||
|
||||
export function LinkButton({
|
||||
href,
|
||||
variant = 'quiet',
|
||||
variant,
|
||||
scroll = true,
|
||||
target,
|
||||
children,
|
||||
...props
|
||||
}: LinkButtonProps) {
|
||||
|
|
@ -21,7 +23,7 @@ export function LinkButton({
|
|||
|
||||
return (
|
||||
<Button {...props} variant={variant} asChild>
|
||||
<Link href={href} dir={dir} scroll={scroll}>
|
||||
<Link href={href} dir={dir} scroll={scroll} target={target}>
|
||||
{children}
|
||||
</Link>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue