diff --git a/src/components/Waterfall.js b/src/components/Waterfall.js index b47808c..0fcb567 100644 --- a/src/components/Waterfall.js +++ b/src/components/Waterfall.js @@ -13,9 +13,33 @@ const WaterfallItem = ({ data, onLoad }) => { return (
-
-

{data.title}

-

{data.sub}

+
+

+ {data.title} +

+

+ {data.sub} +

{ onLoad(sizeRef.current.size); }, 500); }} - alt="asd" - onError={setTimeout(() => { - onLoad(sizeRef.current.size); - }, 500)} + onError={() => + setTimeout(() => { + onLoad(sizeRef.current.size); + }, 500) + } width={"100%"} src={data.img} />