mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-05 14:18:58 -05:00
remove unnecessary PropsWithChildren
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
import { useEffect, useRef } from "react";
|
||||
import classNames from "classnames/bind";
|
||||
import type { PropsWithChildren } from "react";
|
||||
|
||||
import styles from "./Wallpaper.module.css";
|
||||
const cx = classNames.bind(styles);
|
||||
|
||||
type WallpaperProps = JSX.IntrinsicElements["div"] &
|
||||
PropsWithChildren<{
|
||||
image: string;
|
||||
tile?: boolean;
|
||||
}>;
|
||||
type WallpaperProps = JSX.IntrinsicElements["div"] & {
|
||||
image: string;
|
||||
tile?: boolean;
|
||||
};
|
||||
|
||||
const Wallpaper = ({ image, tile, className, ...rest }: WallpaperProps) => {
|
||||
const bgRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
Reference in New Issue
Block a user