...
About the dispatch, we have a logic for it, and concise to get the status of quote and store, we need to create a new for closed restaurant, we need to create new types for AddressModalAction, have this in the POC.
...
Task 3 - Create
...
the component for show message of the restaurant closed
With this made, we can use this in moment for call a delivery and show the error correct in case of closed restaurant
ATTENTION - the component in line 641 is not to be use, we need to create a new component for use in this local.
...
We need change or create a new component for show message about closed restaurant. In this POC I’m use the component src/components/modal-no-delivery-stores-open/no-stores-open-delivery-modal.tsx this component don’t is used currently in the app, so we can change some thing and use, this is a example of component:
...
In the file of this component we need to change some things for work, for example we need to transform in a React component and pass the attribute for next open date.
...
The component to be create is this:
...
We need to pass the next open date
Need to validate if restaurant has a service mode "Order Pickup", case not we need to disable this button
validate if it has service mode correct
validate if this service mode is opened
The button "Use Different Address“ return to screen of search delivery.
POC - intl-whitelabel-app
...