Cards

|-/redux
    |
    |-/cards
        |- index.ts
        |- cardsSlice.ts
        |- cardsThunks.ts
Initial State
const initialState: SliceState = {
  cardsData: [],
  isLoadingCardsData: false,
  cardsRefreshSuccess: false,
};
Selectors
  • getCards: retrieves an array with the customer's debit cards.

  • getIsLoadingCardsData: whether the customer's debit cards array is being requested or not.

  • getCardRefreshSuccess: when they customer requested to show their card's real data.

Last updated