generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Menu de nav tiene separadores lógicos y enlace a Ranking
- Loading branch information
Showing
5 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
|
||
export function Ranking({darkMode}){ | ||
// Aquí puedes agregar la lógica para obtener los datos del ranking de usuarios | ||
const users = [ | ||
{ name: 'Usuario 1', dailyQuestions: 10 }, | ||
{ name: 'Usuario 2', dailyQuestions: 8 }, | ||
{ name: 'Usuario 3', dailyQuestions: 5 }, | ||
// Agrega más usuarios según sea necesario | ||
]; | ||
|
||
// Ordenar los usuarios por número de preguntas diarias acertadas | ||
users.sort((a, b) => b.dailyQuestions - a.dailyQuestions); | ||
|
||
return ( | ||
<div> | ||
<h1>Ranking de Usuarios</h1> | ||
<ol> | ||
{users.map((user, index) => ( | ||
<li key={index}> | ||
{user.name} - {user.dailyQuestions} preguntas acertadas | ||
</li> | ||
))} | ||
</ol> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters