Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement leaderboard for displaying members with the most points #8

Open
gracewzhang opened this issue Jan 23, 2023 · 0 comments
Open
Assignees

Comments

@gracewzhang
Copy link
Member

gracewzhang commented Jan 23, 2023

Description

  • Implement the leaderboard for displaying the members with the most points

Design

image (1) (1)

Todos

  • Create a new component in src/components/Leaderboard/index.tsx <-- this is where the Leaderboard component will live!
  • Run npm install @tanstack/react-table to install Tanstack's React Table
    • The reason why we're using React Table instead of just Chakra UI's table is because React Table supports filtering & sorting
  • Use Tanstack's React Table + Chakra UI to render a table where the columns are the user's rank, name, number of points, and number of events attended as well, which we'll need in the future (we can leave this for a future issue)
  • We can use dummy data for now (create a file called src/components/Leaderboard/data.ts to store the dummy data)
  • Don't worry about styling the table so it looks exactly like Ellie's design---just focus on the initial functionality

Useful Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants