snowballtools-base/packages
Vivian Phung 61e3e88a6c
Refactor Input and SearchBar (#199)
### TL;DR

This pull request refactors the `SearchBar` and `Input` components, adding a `ref` to the former and removing an incorrect understanding of `react-hook-form` (yes, i prev "fix" the component) in the latter.

### What changed?

A ref is added to the SearchBar component for better control and handling. In the Input component, we have eliminated the usage of 'react-hook-form' and as a result, the 'register' prop is removed. This makes the component less reliant on specific libraries and more reusable.

### How to test?

Ensure that proper testing is done on the updated components. Make sure that the `SearchBar` works as expected with its ref and that Input does not depend on 'react-hook-form' anymore.

### Why make this change?

This change was made to improve the functionality of the `SearchBar` and the flexibility of the Input component, making them more effective and reusable respectively. The changes also align with the current code quality standards and best practices.
2024-05-22 15:06:50 -04:00
..
backend [nit] remove package.json: No license field warning 2024-05-22 10:59:24 -04:00
deployer Laconic frontend deployment 2024-05-22 09:21:00 -05:00
frontend Refactor Input and SearchBar (#199) 2024-05-22 15:06:50 -04:00
gql-client [nit] remove package.json: No license field warning 2024-05-22 10:59:24 -04:00