Add scroll prop to links.

This commit is contained in:
Mike Cao 2023-10-17 11:27:35 -07:00
parent 9af6e08c00
commit 435e6a155d
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import Link from 'next/link';
import { useLocale } from 'components/hooks';
import styles from './LinkButton.module.css';
export function LinkButton({ href, className, variant, children }) {
export function LinkButton({ href, className, variant, scroll = true, children }) {
const { dir } = useLocale();
return (
@ -11,6 +11,7 @@ export function LinkButton({ href, className, variant, children }) {
className={classNames(styles.button, className, { [styles[variant]]: true })}
href={href}
dir={dir}
scroll={scroll}
>
{children}
</Link>