-
Notifications
You must be signed in to change notification settings - Fork 1
Dw my adopted gi #92
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
Dw my adopted gi #92
Conversation
|
|
||
| useEffect(() => { | ||
| async function fetchData() { | ||
| console.log('test test testDENNIS'); |
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.
might wanna remove this 🤔
| }; | ||
| export const fetchSiteInfo = async (siteId: number) => { | ||
| // Simulate an API call to fetch site information | ||
| const response = await fetch('http://localhost:3000/sites/' + siteId); |
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.
Could you try using axios instead for endpoint calls?
Also, make sure to use ${import.meta.env.VITE_API_BASE_URL} instead of hardcoding the backend URL
| setSelectedFilter={setSelectedFilter} | ||
| selectedName={selectedName} | ||
| setSelectedName={setSelectedName} /> | ||
| <RenderFormControls |
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.
thanks for the formatting changes!
apps/frontend/src/components/volunteerDashboard/VolunteerDashboard.tsx
Outdated
Show resolved
Hide resolved
|
|
||
| const allSites = await Promise.all(sitePromises); | ||
| setSites(allSites); | ||
| console.log(allSites); |
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?
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.
removed console log, if we removed 177-8 how would we get the data
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.
just meant the console.log! i didn't realize my comment selected those lines as well
No description provided.