mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-31 04:45:22 -04:00
update component prop types to use JSX.IntrinsicElements
This commit is contained in:
@@ -5,7 +5,7 @@ import { ReactNode } from "react";
|
||||
import styles from "./MenuLink.module.css";
|
||||
const cx = classNames.bind(styles);
|
||||
|
||||
type Props = {
|
||||
type MenuLinkProps = {
|
||||
href: string;
|
||||
icon: ReactNode;
|
||||
text: string;
|
||||
@@ -13,7 +13,7 @@ type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const MenuLink = ({ href, icon, text, current, className }: Props) => (
|
||||
const MenuLink = ({ href, icon, text, current, className }: MenuLinkProps) => (
|
||||
<Link href={href} prefetch={false}>
|
||||
<a className={cx(styles.link, { current: !!current }, className)}>
|
||||
{icon} <span className={styles.label}>{text}</span>
|
||||
|
||||
Reference in New Issue
Block a user