From 87857a8cbb2f65bf81b1ec00a1d200c4a698e49e Mon Sep 17 00:00:00 2001 From: Drina_Rincon Date: Tue, 3 May 2022 15:07:59 -0300 Subject: [PATCH] Modificar banner agregando animation JSON --- src/components/Banner/Banner.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/Banner/Banner.js b/src/components/Banner/Banner.js index c3ab5314..ebf23f3e 100644 --- a/src/components/Banner/Banner.js +++ b/src/components/Banner/Banner.js @@ -17,9 +17,7 @@ const Banner = ({ data }) => { const diagonalReverseState = variant === "diagonalReverse" ? "col-md-4" : "col-lg-6" - console.log(image?.url) - - const [lottieLight, setLottieLight] = useState(null) + console.log(data) const defaultOptions = { loop: true, @@ -29,16 +27,6 @@ const Banner = ({ data }) => { }, } - useEffect(() => { - //if (image.mime === "application/json") { - - fetch(image?.url, { - method: 'GET', // or 'PUT' - }).then(res => res.json()) - .catch(error => console.error('Error:', error)) - .then(res => setLottieLight(res)); - }, []) - return (
{ {image?.mime === "application/json" ? :