and the title as 'Close'.
One thing that we've noticed is that we have
this reset form function which obviously we don't have at the moment.
So, I'm gonna go into this function here,
and then implement the reset form here.
Inside the reset form,
I'm just going to cut that out and then put it in here.
So, we're going to be resetting the form by doing this.
Now, then the user submits the reservation by clicking on the reservation button.
We'll toggle the modal to show the information.
So, this toggleModal will cause the modal to be shown,
and then you will show the information that you submitted through
the reservation form on top of the form there in the screen.
So, those are the changes that we will make to use the modal.
Let's save the changes and then go and take a look at our application.
Going to our application in the device.
Let's now pull up the reserve table,
and then you can see that you have the reservation form here.
Let me fill in some values to the reservation form,
it will select a date and a time.
I'm just going to use the default.
Then when I click on the reserve button,
you will immediately see that the modal pops up onto the screen.
So, you can see how the modal contains the information that I just submitted,
and when I click on the Close button the form is dismissed,
and the reservation form is again show and the reservation form is reset.
That is what we aim to achieve using this reservation form.
I just notice that here the smoking is not showing anything.
So, I need to go and fix that code there.
Now, here when we display the smoking here,
will say if this state smoking then we will
use a way to display a yes or no in the screen there.
So, with this modification to the smoking,
let's save the changes and go and take a look at our form.
Again, going back to our application,
let me click on the reserve table,
and select a value,