New admin section.
This commit is contained in:
1 parent
b78ff3b477
commit
ce1f6c3618
44 files changed
+515
-157
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user