-
Notifications
You must be signed in to change notification settings - Fork 251
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) Configure showing/hiding reference number fields #2180
Conversation
Size Change: +91 B (0%) Total Size: 16.1 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM
Thanks @vasharma05
@vasharma05 could you look into why the build is failing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once we fix the missing imports.
@@ -52,6 +52,7 @@ export function OrderForm({ | |||
const { orders, setOrders } = useOrderBasket<OrderBasketItem>(orderTypeUuid, prepOrderPostData); | |||
const [showErrorNotification, setShowErrorNotification] = useState(false); | |||
const { orderType } = useOrderType(orderTypeUuid); | |||
const config = useConfig<ConfigObject>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be corresponding imports for type ConfigObject
and useConfig
in the diff too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the imports on my local version of the file.
Let me try re-pushing the changes
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebasing resolved the issue
Thank you @vasharma05 for implementing this change. It actual address a request from users on the hiding the reference field. |
602ccae
to
6b0f786
Compare
6b0f786
to
139edde
Compare
* Make the showing/hiding reference number field configurable * Fix imports
Requirements
Summary
This PR shows/ hides the reference fields in the test and general order forms as per the configuration
Screenshots
Screen.Recording.2025-01-10.at.22.24.57.mov
Related Issue
None
Other