Skip to content
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

5. FRONTEND: The entire flow of Redux for Shipping and Payment #75

Open
trimakichan opened this issue May 10, 2023 · 0 comments
Open

5. FRONTEND: The entire flow of Redux for Shipping and Payment #75

trimakichan opened this issue May 10, 2023 · 0 comments
Assignees

Comments

@trimakichan
Copy link
Collaborator

trimakichan commented May 10, 2023

CONSTANT

  • Add "CART_SAVE_SHIPPING_ADDRESS" and "CART_SAVE_PAYMENT_METHOD" constants inside the "cartConstants.js"

REDUCER

  • Add "CART_SAVE_SHIPPING_ADDRESS" and "CART_SAVE_PAYMENT_METHOD" to the "cartReducer" function in the "cartReducers.js" folder.

STORE

  • Get "shippingAddress" and "paymentMethod" from the browser local storage.

  • Add "shippingAddress" and "paymentMethod" to the "initialState"

ACTION

  • Write "saveShippingAddress" and "savePaymentMethod" functions in the cartActions.js.

Note: don't forget to import constants.

UI/VIEW

  • Create a "CheckoutSteps.js" in the "components" folder and write codes.

  • Create a "ShippingScreen.js" in the "screens" folder and write codes.

  • Create a "PaymentScreen.js" in the "screens" folder and write codes.

ROUTES

In the "App.js" file

  • Add routes to ShippingScreen.js, PaymentScreen.js and LoginScreen.js
@trimakichan trimakichan converted this from a draft issue May 10, 2023
@trimakichan trimakichan self-assigned this May 10, 2023
@trimakichan trimakichan moved this from Todo to In Progress in Kal - Event Page May 12, 2023
@trimakichan trimakichan moved this from In Progress to Back-End Done in Kal - Event Page May 16, 2023
@trimakichan trimakichan moved this from Back-End Done to Redux Back-End Done -SM: Makiko in Kal - Event Page May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Back-End Done -SM: Makiko
Development

No branches or pull requests

1 participant