Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kalebzaki4 committed Aug 23, 2024
1 parent 5de3280 commit 95d3abe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Paginas/Inicio/index.jsx
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -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 <LoadingScreen />;
return <TelaCarregamento />;
}

return (
Expand Down

0 comments on commit 95d3abe

Please sign in to comment.