[x] If user is not logged in, client should be redirected to Login Page. Please check Protected Routing subject on React Router 5 tutorials and docs.
[x] In this task you will handle only Step 1
Step 1 - Address information
[x] On that page client can add shipping and receipt addresses separately
[x] Client can select address previously saved
[x] Make a GET request to “/user/address” to get saved address list of the user
[x] NOTE! if user authenticated and token is in request headers, address of the user will be responded. However, if user is not logged in, than it will response with an Error
Add new address
[x] If client click “Add Address” button a form should be shown on the page
[x] Form Fields:
[x] Address Title: String
[x] Name & Surname: String
[x] Phone: String
[x] City (İl): City should be selected on the dropdown list
[x] District (İlçe): String
[x] Neighborhood (Mahalle): String
[x] Address: String multiline ****for the rest details: Street, building and door numbers
[x] On Submit you need to make a POST request to same endpoint: “/user/address”
[x] NOTE! if user authenticated and token is in request headers, address of the user will be saved to DB. However, if user is not logged in, than address will not be saved and it will response with an Error.
[x] To update address information you need to create PUT request to “/user/address” endpoint including id of the address information.
Description
[x] In this task you will handle only Step 1
Step 1 - Address information
Add new address