The OrderSearch container enables order searches using email, last name, and order number. It is available to both guest and registered users for quick access to order details.
OrderSearch container
Configurations
The OrderSearch container provides the following configuration options:
Options
Type
Req?
Description
className
string
No
Allows custom CSS classes to be applied to the form for styling.
isAuth
boolean
No
Indicates whether the user is authenticated.
renderSignIn
function
No
A function responsible for rendering the sign-in form for the user.
routeGuestOrder
function
No
A function that returns the URL for the guest (unauthenticated user) order route.
onError
function
No
A function executed when an error occurs. It receives an errorInformation object containing details about the error.
Example
The following example demonstrates how to render the OrderSearch container: