mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 21:05:29 -04:00
update component prop types to use JSX.IntrinsicElements
This commit is contained in:
@@ -3,14 +3,14 @@ import classNames from "classnames";
|
||||
|
||||
import styles from "./Loading.module.css";
|
||||
|
||||
type Props = {
|
||||
type LoadingProps = {
|
||||
width: number; // of entire container, in pixels
|
||||
boxes?: number; // total number of boxes (default: 3)
|
||||
timing?: number; // staggered timing between each box's pulse, in seconds (default: 0.1s)
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const Loading = ({ width, boxes = 3, timing = 0.1, className }: Props) => {
|
||||
const Loading = ({ width, boxes = 3, timing = 0.1, className }: LoadingProps) => {
|
||||
// each box is just an empty div
|
||||
const divs = [];
|
||||
|
||||
|
Reference in New Issue
Block a user