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

Frontend/table view #30

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Frontend/table view #30

merged 3 commits into from
Nov 7, 2024

Conversation

michaelharlow
Copy link
Collaborator

This pull request introduces several new UI components and updates to the frontend codebase, focusing on enhancing the user interface and improving the user experience. The most significant changes include adding new dependencies, implementing new components for dialog, calendar, and popover functionalities, and updating the AdminTable component to include a form for creating new loans.

New Dependencies:

  • Added @radix-ui/react-dialog, @radix-ui/react-popover, date-fns, and react-day-picker to package.json to support new UI components.

Component Additions:

  • calendar.tsx: Implemented a new Calendar component using react-day-picker to provide a date selection interface.
  • dialog.tsx: Added a Dialog component using @radix-ui/react-dialog for creating modal dialogs.
  • popover.tsx: Created a Popover component using @radix-ui/react-popover for displaying popover content.

Component Updates:

  • Layout.tsx: Added logout functionality with a button that uses useAuth and useNavigate hooks from react-router-dom.
  • ProtectedRoute.tsx: Removed an unnecessary console log statement.

Form Integration in AdminTable:

  • AdminTable.tsx: Updated to include a form for creating new loans, utilizing the new Dialog, Calendar, and Popover components. The form uses react-hook-form and zod for form handling and validation. [1] [2] [3]

@michaelharlow michaelharlow self-assigned this Nov 7, 2024
@michaelharlow michaelharlow merged commit db0f95f into main Nov 7, 2024
1 check passed
@michaelharlow michaelharlow deleted the frontend/table-view branch November 13, 2024 18:22
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.

1 participant