-
Notifications
You must be signed in to change notification settings - Fork 14
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
Calender view events #120
Calender view events #120
Conversation
Fetching Events in CalendarView
useEffect(() => { | ||
async function fetchEvents() { | ||
try { | ||
const response = await fetch(`${backendUrl}/api/v1/events`); |
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.
don't fetch it here
write it in helpers/api and use the apiCall function
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.
done changes
yarn.lock
Outdated
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.
use yarn to install package
Co-authored-by: PrkharMishra <[email protected]>
Co-authored-by: PrkharMishra <[email protected]>
No description provided.