mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 00:15:30 -04:00
update component prop types to use JSX.IntrinsicElements
This commit is contained in:
@@ -2,13 +2,12 @@ import { memo } from "react";
|
||||
import classNames from "classnames";
|
||||
import Selfie from "../Selfie/Selfie";
|
||||
import Menu from "../Menu/Menu";
|
||||
import type { HTMLAttributes } from "react";
|
||||
|
||||
import styles from "./Header.module.css";
|
||||
|
||||
type Props = HTMLAttributes<HTMLDivElement>;
|
||||
type HeaderProps = JSX.IntrinsicElements["div"];
|
||||
|
||||
const Header = ({ className }: Props) => (
|
||||
const Header = ({ className }: HeaderProps) => (
|
||||
<header className={classNames(styles.header, className)}>
|
||||
<nav className={styles.nav}>
|
||||
<Selfie className={styles.selfie} />
|
||||
|
Reference in New Issue
Block a user