Skip to content
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

feat: hook up actions #127

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

feat: hook up actions #127

wants to merge 17 commits into from

Conversation

KevinWu098
Copy link
Member

Summary

  1. Hooks up action for saving availability
  2. Hooks up fetching data from a given user (defaulting to 123 for testing)

@seancfong seancfong linked an issue Dec 4, 2024 that may be closed by this pull request
@seancfong seancfong self-assigned this Dec 4, 2024
Copy link
Member

@seancfong seancfong left a comment

Choose a reason for hiding this comment

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

Left a couple of comments - I think the most important thing is the one helper function being exported in a file with the "use server" directive which will still be callable by the client (think of it like creating another API route), so would be best to move that to another file without "use server"

}
}

export async function _getMeetingDates(
Copy link
Member

Choose a reason for hiding this comment

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

move this function outside of the server action file, as this will otherwise also be exposed to be callable by the client

Copy link
Member

Choose a reason for hiding this comment

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

maybe "cell" might be better name than "square"?

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.

Actions for saving availability
2 participants