mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Update ListTable display of items.
This commit is contained in:
parent
934b107e5e
commit
8d85e3fcdb
10 changed files with 115 additions and 21 deletions
|
|
@ -3,11 +3,15 @@ import Link from 'next/link';
|
|||
import { useLocale } from 'components/hooks';
|
||||
import styles from './LinkButton.module.css';
|
||||
|
||||
export function LinkButton({ href, className, children }) {
|
||||
export function LinkButton({ href, className, variant, children }) {
|
||||
const { dir } = useLocale();
|
||||
|
||||
return (
|
||||
<Link className={classNames(styles.button, className)} href={href} dir={dir}>
|
||||
<Link
|
||||
className={classNames(styles.button, className, { [styles[variant]]: true })}
|
||||
href={href}
|
||||
dir={dir}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue