Update ListTable display of items.

This commit is contained in:
Mike Cao 2023-10-15 13:12:29 -07:00
parent 934b107e5e
commit 8d85e3fcdb
10 changed files with 115 additions and 21 deletions

View file

@ -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>
);