Commit Graph

10 Commits

Author SHA1 Message Date
Tobias Johansson
84f5e74f00 Merged in feat/SW-104-add-card (pull request #410)
Feat/SW-104 add card

* feat: add api endpoints for adding and removing credit card

* feat(SW-104): Added Sonner toast lib

* feat(SW-104): Add route handlers for add card flow

* feat(SW-104): Added link to route handler and trigger toast when query params from callback is set

* feat(SW-104): Added translations for add card success toast

* feat(SW-104): Refactored to use client request for initiate save card

* fix(SW-104): Return proper status codes when initiating save card fails

* fix(SW-104): remove delete card endpoint because it was added in SW-245

* fix(SW-104): remove console.log

* fix(SW-104): Use api.post for save card request

* fix(SW-104): move function declaration above export

* fix(SW-104): handle response of save card and use Lang enum

* fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop

* fix(SW-104): added type for AddCreditCardButton props

* feat: add toasts

* fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts

* fix(SW-104): remove unnecessary wrapping div


Approved-by: Michael Zetterberg
2024-08-20 15:04:02 +00:00
Michael Zetterberg
ffa76cd8a2 feat(WEB-300): add retry for fetch calls 2024-07-24 10:56:35 +02:00
Chuma McPhoy
9413739f17 feat: Add Hotel endpoint and TRPC query 2024-07-01 13:53:07 +02:00
Matilda Landström
fa5638aaed feat: add credit cards endpoint 2024-06-18 15:48:50 +02:00
Arvid Norlin
9ef9de840c feat: add data handling to EarnAndBurn 2024-05-23 14:59:26 +02:00
Michael Zetterberg
476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Michael Zetterberg
01587d7fd5 fix: do not mutate api default options 2024-05-19 20:22:05 +02:00
Christel Westerberg
661a8019d3 feat: enhance stays with api data 2024-05-14 10:33:15 +02:00
Simon Emanuelsson
b2e992c69a feat(WEB-205, WEB-206): get breadcrumbs for my pages from contentstack 2024-04-19 09:24:38 +02:00
Simon Emanuelsson
55794034c5 feat(WEB-169): get profile data from API 2024-04-18 13:53:49 +02:00