From 95d3abe632959573b394ded7955d73f5d85cc053 Mon Sep 17 00:00:00 2001 From: kalebzaki4 Date: Fri, 23 Aug 2024 18:00:38 -0300 Subject: [PATCH] Update index.jsx --- src/Paginas/Inicio/index.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Paginas/Inicio/index.jsx b/src/Paginas/Inicio/index.jsx index 3df03dd..3836dc0 100644 --- a/src/Paginas/Inicio/index.jsx +++ b/src/Paginas/Inicio/index.jsx @@ -1,8 +1,7 @@ -// Inicio.js import React, { useState, useEffect } from "react"; import Banner from "../../Components/Banner/index"; import ListaDeAnimesHorizontal from "../../Components/ListaDeAnimesHorizontal/index"; -import LoadingScreen from "../../Components/TelaCarregamento"; // Certifique-se de ajustar o caminho +import TelaCarregamento from "../../Components/TelaCarregamento"; // Certifique-se de ajustar o caminho import '../../message.css'; // Certifique-se de que o CSS do componente está sendo importado export default function Inicio() { @@ -12,14 +11,14 @@ export default function Inicio() { // Simula o carregamento de dados const timer = setTimeout(() => { setLoading(false); - }, 3000); // O tempo do carregamento pode ser ajustado + }, 500); // Tempo de carregamento reduzido para 500ms // Limpeza do timer quando o componente for desmontado return () => clearTimeout(timer); }, []); if (loading) { - return ; + return ; } return (