-
Notifications
You must be signed in to change notification settings - Fork 3
Competitions team page #65
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
Conversation
jenetic
commented
Oct 24, 2022
- Just added set-up and barebones basic layout for now (there is not really any functionality)
Merge with main
… allow user to view team data if registered in comp (hardcoded)
| @@ -0,0 +1,22 @@ | |||
| import { message } from 'antd'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i assume this shouldn't be called DELETE?
| import { getToken } from '../utils/token'; | ||
|
|
||
| const API = | ||
| 'http://localhost:9000/v1/teams/TEST'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace with env variable (.env)
| import { getToken } from '../../../utils/token'; | ||
|
|
||
| // Checks if user is registered in competition | ||
| export const getRegisteredState = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all of this code should go in actions. Best to make a src/actions/teams folder.
| @@ -0,0 +1,2 @@ | |||
| REACT_APP_API="http://localhost:9000" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file.