Add Support Request Component and Route
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

[00:00:01] Hi welcome back to our top billing in the sky. We're going to implement the quest functionality. So first we need to do is make this a button. We need you out. We can do it and then make a route that we can go to request flash ads for Slashdot. So let's go ahead and open up our property management outbreak here that we see. And let's go ahead and Google are routing get it. So it's good to be sure. Yes. Let's copy this. Put it to wind down and get away with it. OK. Now four instead of four requests request we want to see that support request and then we want to copy this word up here and then what that support request. And then important from support request underscored came out of this file and component support request directory let's say support requests underscored. J.S. let's put our content in here so let's go over to our newsletter newsletter underscored and dodgy ass and straight up copy the entire component and throw it into our support requests. OK now let's change what we need and change starting with our handle submissions coming out the same newsletter and then once I change the name of this to and support request and send it newsletter copy going to go down here and let's say instead of our newsletter again or request instead of newsletter support requests and instead of newsletter add support request. Okay that is working or we think it might be working. But what's changed the form to support was to give a unique name. [00:02:08][127.2]
[00:02:11] Now what we need to do is change this link to redirect us to support quest. OK. Now what we want to do is check this out in the browser because all around us around a set up and our component is set up once go right here and was hit and nothing happens because this is not a link. Let's go to our app. Let's go to support request. Jay Yes. And it's it's right here. OK so let's go ahead and cut it and then let's import Rinke from react RĂ¼diger dong. OK now is this back in with a wink wink to equals slash support request slash. That's all we are doing. Then we put our data right back in here ProQuest can save it. Let's go to our browser and read the page. Now we have a button that says I'd request let us go ahead and tap this button and we brought you support requests Weisheit the route we just added. Okay now that we have that set up once committer could get status get come comment and let's it a commit message set up route and component person for the. No my bad for its port request support request functionality. All right I'll catch you the next guide where we will. Taking a look at this where we will basically we don't hear state we just need to save the news Lennert as we'll have the content. So the next guy we're going to set up an auction where we all use redux thanks and actually use to perform a post request to our server. We will say our new support requests and then we will be good to go. [00:04:37][146.7]
[00:04:38] So let's go to the next guy. I'll see you then. [00:04:38][0.0]
[273.9]