diff --git a/src/views/components/retrospective-slides.tsx b/src/views/components/retrospective-slides.tsx index 5a7ba30..777aa30 100644 --- a/src/views/components/retrospective-slides.tsx +++ b/src/views/components/retrospective-slides.tsx @@ -10,9 +10,7 @@ import { SpinnerIcon, } from '@phosphor-icons/react'; import { motion } from 'framer-motion'; -import * as React from 'react'; import { useSearchParams } from 'react-router-dom'; -import { Navigation } from './navigation'; import ProfileCard from './ProfileCard'; import { StorySlide } from './story-slide'; @@ -35,8 +33,6 @@ export function RetrospectiveSlides() { error: errorSystems, } = useMetricsBySystems(cpf, ano); - const [current, setCurrent] = React.useState(0); - // Calcula slides baseado nos dados disponíveis const slides: number[] = []; slides.push(0); // Slide inicial @@ -49,8 +45,6 @@ export function RetrospectiveSlides() { } slides.push(3); // Slide final - const total = slides.length; - const isLoading = isLoadingPortal || isLoadingSystems; const hasError = errorPortal || errorSystems; @@ -97,8 +91,6 @@ export function RetrospectiveSlides() { ) : ( <> - -
@@ -135,15 +127,6 @@ export function RetrospectiveSlides() { pública - - Seus dados analisados: CPF ••••••••••• - - 0 && (
- {/* Coluna esquerda - Ícone e números principais */} - {/* Ícone com efeito */} - {/* Título */} - {/* Número principal */} - {/* Estatísticas rápidas */} - {/* Coluna direita - Sistemas mais acessados (mantendo seu design) */}
- {/* Lista de sistemas */}
{topItems.slice(0, 6).map((item, index) => { const medalColors = [ @@ -333,8 +309,7 @@ export function RetrospectiveSlides() { }}>

{( - (item.totalAcessos / - (topItems[0]?.totalAcessos || 1)) * + (item.totalAcessos / (totalAcessos || 1)) * 100 ).toFixed(0)} % @@ -346,7 +321,7 @@ export function RetrospectiveSlides() { whileInView={{ width: `${ (item.totalAcessos / - (topItems[0]?.totalAcessos || 1)) * + (totalAcessos || 1)) * 100 }%`, }}