Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<p align="center">
An example flashcard study platform with gamification features powered by Trophy.
<br />
<a href="https://docs.trophy.so/guides/tutorials/how-to-build-a-gamified-study-platform">
<a href="https://docs.trophy.so/guides/gamified-study-platform">
<strong>Tutorial »</strong>
</a>
<a href="http://trophy.so?utm_source=github&utm_medium=example-apps&utm_campaign=example-study-app">
<strong>Trophy »</strong>
</a>
<br />
<br />
<a href="https://github.com/trophyso/example-study-platform">View Demo</a>
<a href="https://examples.trophy.so/study-platform">View Demo</a>
&middot;
<a href="https://github.com/trophyso/example-study-platform/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
&middot;
Expand Down Expand Up @@ -77,7 +77,7 @@ npm run dev

### Prerequisites

To use the gamification features, you'll need to create a Trophy account. Follow the [tutorial](https://docs.trophy.so/guides/tutorials/how-to-build-a-gamified-study-platform) to get started or [create an account](http://app.trophy.so/sign-up?utm_source=github&utm_medium=example-apps&utm_campaign=example-study-app).
To use the gamification features, you'll need to create a Trophy account. Follow the [tutorial](https://docs.trophy.so/guides/gamified-study-platform) to get started or [create an account](http://app.trophy.so/sign-up?utm_source=github&utm_medium=example-apps&utm_campaign=example-study-app).

Find or create your API key here and add it to your environment variables as follows:

Expand Down
25 changes: 19 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@radix-ui/react-separator": "^1.1.4",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.13",
"@trophyso/node": "^1.0.40",
"@trophyso/node": "^1.8.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
Expand All @@ -45,4 +45,4 @@
"tailwindcss": "^4",
"typescript": "^5"
}
}
}
2 changes: 1 addition & 1 deletion src/app/leaderboard-center/default-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function DefaultView({
limit: 10,
offset: 0,
userId: undefined,
runDate: dayjs().format("YYYY-MM-DD")
runDate: undefined
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this about

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having an initial state here breaks the initial leaderboard view. This fixes it

});
const [loadingLeaderboard, setLoadingLeaderboard] = useState(false);
const [loadingUserLeaderboard, setLoadingUserLeaderboard] = useState(false);
Expand Down