Skip to content

Leader borard -> master - #198

Open
TheTreeHopper wants to merge 3 commits into
masterfrom
LeaderBorard
Open

TheTreeHopper wants to merge 3 commits into
masterfrom
LeaderBorard

Conversation

@TheTreeHopper

Copy link
Copy Markdown

No description provided.

Comment on lines +16 to +18
if (error) return <p>{error}</p>;

return (

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.

you should probably do this with ternary


useEffect(() => {
axios
.get("http://localhost:4590/api/leaderboard/leaderboard")

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.

the backend url is saved in a const in App.tsx. use it and add the leaderboard text.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

put this page in the pages folder

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

3 participants