Skip to content

Commit b77b038

Browse files
authored
Merge pull request #578 from aurorascharff/patch-7
2 parents ab59d13 + 9746289 commit b77b038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/content/docs/tutorial/full-stack-app/8-jobs-details.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Let's start by creating a new file in our `src/app/pages/applications` folder ca
2727
- app
2828
- pages
2929
- applications
30-
- actions.ts
30+
- functions.ts
3131
- Details.tsx
3232
- List.tsx
3333
- New.tsx
@@ -59,7 +59,7 @@ render(Document, [
5959
route("/", [isAuthenticated, List]),
6060
route("/new", [isAuthenticated, New]),
6161
- route("/:id", [isAuthenticated, () => <h1>Application</h1>]),
62-
+ route("/:id", [isAuthenticated, () => Details]),
62+
+ route("/:id", [isAuthenticated, Details]),
6363
]),
6464
]),
6565
---
@@ -1034,7 +1034,7 @@ Let's take the smarter, not harder approach and start with our `New` application
10341034
- app/
10351035
- pages/
10361036
- applications/
1037-
- actions.ts
1037+
- functions.ts
10381038
- Details.tsx
10391039
- Edit.tsx
10401040
- List.tsx
@@ -1256,7 +1256,7 @@ We updated the types that we're importing from Prisma to remove `Contact` and in
12561256

12571257
You'll notice that we imported `ApplicationWithRelations` from our `List` page. This is a type that we created to include the `company` and `contacts` details.
12581258

1259-
Now, et's work our way through the form, for each input field, we want to set a `defaultValue`, referencing the application details.
1259+
Now, let's work our way through the form, for each input field, we want to set a `defaultValue`, referencing the application details.
12601260

12611261
```tsx title="/src/app/components/EditApplicationForm.tsx" showLineNumbers=false {"Company Name": 1} "defaultValue={application?.company?.name ?? ''}" {"Job Title": 3} "defaultValue={application?.jobTitle ?? ''}" {"Job Description": 5} "defaultValue={application?.jobDescription ?? ''}" {"Salary Min": 7} "defaultValue={application?.salaryMin ?? ''}" {"Salary Max": 9} "defaultValue={application?.salaryMax ?? ''}" {"Posting URL": 11} "defaultValue={application?.postingUrl ?? ''}"
12621262
.

0 commit comments

Comments
 (0)