We're almost ready connecting our application to our readers, and then, of course, once we do that,
our functionality in the register is going to get way more complicated than that, because, of course,
then we're going to actually deal with our court, whether that's increase, decrease, remove or clear
the card.
And in order to do that, I would want to do a bit more changes in the images.
So I would want to start by changing my initial story.
So this was all good while we were practicing on the redux.
But then, of course, for our app, the initial store or initial state will be different.
So what is going to be our initial state?
Well, we're going to have a court property and the value will be our hardcoded card items.
Again, just to recap, card items was an array and then each and every item was an object.
And at the moment what we're doing is we're just bypassing that and passing it directly in the card
container where we have a card prop and then we set it equal to card items.
But of course, what I want to do is access the card in my card container using the reader.
So in my initial store, the card property will be equal to my card items.
So that will stay the same.
And then there's going to be two more properties.
We're going to have eight total property and initially it will be set zero as well as the amount.
So what is the initial amount of items in a card which also will be zero?
I will save this.
And then of course, at the moment I do have my not a number because my producer is still counting on
account property that is no longer there.
And that's why we will not dispatch any more from the objets.
We also don't really care about the state in here.
And then I also want to clean up my number and my producer, sorry, and producer for the time being.
Let's start from the scratch and we're just going to return the state.
And the last thing that I would want to fix is the nav bar, where I'm not going to be passing props
this way.
Again, we will use a redox to access our values directly.
So let me delete the prop then.
Also, let me look for my number and I'm not passing any more.
The card that was just test out the geth state function.
The structuring also needs to go and I'm going to change it back to hardcoded value of zero.
I won't need any more to decrease and increase from the actions since we're going to set it differently
using the redox.
And once we have cleaned up our application, we are ready to connect our application to Radix to display
our items and also access the properties and set up a more sophisticated functionality in our producer.