Skip to content

Commit

Permalink
cambio
Browse files Browse the repository at this point in the history
  • Loading branch information
jul1oCesar0 committed Nov 26, 2024
1 parent 110e8ee commit 1fc666e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ define(['./workbox-fde070c5'], (function (workbox) { 'use strict';
*/
workbox.precacheAndRoute([{
"url": "/offline.html",
"revision": "0.7scokde9ot8"
"revision": "0.s9f3hamu2ko"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/offline.html"), {
Expand Down
8 changes: 4 additions & 4 deletions src/views/Admin/reportes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ function ResultadosEncuestas() {

return (
<div className="container mx-auto p-4">
<h1 className="text-3xl font-bold mb-4">Resultados de Encuestas Web</h1>
<h1 className="text-3xl font-bold mb-4">Resultados de Encuestas </h1>
{resultados.length === 0 ? (
<p>No se han completado encuestas aún.</p>
) : (
<div className="flex flex-wrap gap-4 justify-center">
{data.datasets.map((dataset, index) => (
<div key={index} className="flex-1 max-w-sm p-6 bg-white rounded-lg shadow">
<h3 className="text-xl font-semibold mb-2">{${dataset.label}}</h3>
<h3 className="text-xl font-semibold mb-2">{`${dataset.label}`}</h3>
<div className="w-full h-[400px]">
<Pie
data={{
Expand All @@ -101,13 +101,13 @@ function ResultadosEncuestas() {
label: (tooltipItem) => {
const calificacion = estrellas[tooltipItem.dataIndex]; // Convertir índice a estrellas
const value = dataset.data[tooltipItem.dataIndex];
return ${calificacion}: Personas que han respondido: ${value};
return `${calificacion}: Personas que han respondido: ${value}`;
},
},
},
title: {
display: true,
text: Respuestas por calificación,
text: `Respuestas por calificación`,
},
},
}}
Expand Down

0 comments on commit 1fc666e

Please sign in to comment.