Closed AhmedQeshta closed 2 years ago
token =
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiaWQiOiIxIiwibmFtZSI6ItmG2KfYr9mKINmB2LHZitmG2K_YsiDZhNmE2YrYp9mC2Kkg2KfZhNio2K_ZhtmK2KkiLCJyb2xlIjoiZ3ltIn0.GVUpW4d4ZR98HaZnQe9Rpb6Lix_wsQShXbXZq8zkdMg
To Be
{ "gymData": { "id": ".....", "gymName": ".....", "logo": ".....", "city": ".....", "phone": ".....", "sixMonthPrice": ".....", "monthlyPrice": ".....", "fulltime": ".....", "typeGender": ".....", "description": ".....", "features": [ ".....", "....." ], "review": ".....", "images": [ { "pathUrl": "....." }, { "pathUrl": "....." }, { "pathUrl": "....." }, { "pathUrl":"....." }, { "pathUrl": "....." } ], "reviews": [ { "id": ".....", "rate": ".....", "description": ".....", "createdAt": ".....", "userId": ".....", "user": { "username":".....", "avatar": "....." } } ] } }
Get old data then display it
display Loading component before display input
Add Alert
Loadin in when click update
I forget it, I solve this issues
[FrontEnd - BackEnd] Update API single gym and make update page dynamic
First Must you have token as cookies
token =
To Be
Get old data then display it
display Loading component before display input
Add Alert
Loadin in when click update