-
Notifications
You must be signed in to change notification settings - Fork 347
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
Tailwinds SetInventoryForm.tsx
#5656
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
it is not good in mobile view |
LGTM |
@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌. |
WHAT
🤖 Generated by Copilot at 4cf4c4d
Refactored the SetInventoryForm component to improve the UI and code quality. Used consistent and reusable components, simplified the logic, and cleaned up the code.
Proposed Changes
src/Components/Facility/SetInventoryForm.tsx
: #4958@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 4cf4c4d
Card
component (link, link, link, link)Card
,CardContent
, andInputLabel
from@material-ui/core
(link)LegacySelectField
andLegacyTextInputField
from../Common/HelperInputFields
with imports ofSelectFormField
andTextFormField
from../Form/FormFields
(link)Page
from../Common/components/Page
,Card
from../../CAREUI/display/Card
, andFieldChangeEvent
from../Form/FormFields/Utils
(link)handleChange
function to use theFieldChangeEvent
type and dispatch the form update with a single line of code (link)Page
component to handle the page title and breadcrumbs, instead of using thePageTitle
component and adiv
with custom classes (link)Card
component, instead of the@material-ui/core
component, to style the form (link)SelectFormField
andTextFormField
components, and adjust the form layout to use thegrid
andcol-span
classes, instead of themd:grid-cols-2
class (link)offset
state, as it was not used in the component (link)