Skip to content

Conversation

@xgraceyan
Copy link
Contributor

Summary

Uses departments fetched from Anteater API instead of the hardcoded SearchForm/DepartmentSearchBar/constants.ts

Departments are fetched only once and stored in DepartmentsStore.ts
Department search bar calls useDepartments hook to get departments

Test Plan

  • Ensure departments are stored in the Zustand store and fetched from there on subsequent renders
  • Ensure departments search bar properly loads all departments from the last 10 years (set as 10 for now)
  • Ensure departments search bar functions as expected

Issues

Closes #1333

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.

Use Anteater API for departments

2 participants