Skip to content

Commit

Permalink
docs(tutorial): remove line breaks in new route definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamssg committed Feb 1, 2025
1 parent ac399b7 commit 2aab1e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
- coryhouse
- ctnelson1997
- cvbuelow
- dadamssg
- damianstasik
- danielberndt
- daniilguit
Expand Down
20 changes: 8 additions & 12 deletions docs/tutorials/address-book.md
Original file line number Diff line number Diff line change
Expand Up @@ -987,15 +987,13 @@ touch app/routes/edit-contact.tsx

Don't forget to add the route to `app/routes.ts`:

```tsx filename=app/routes.ts lines=[5-8]
<!-- prettier-ignore -->
```tsx filename=app/routes.ts lines=[5]
export default [
layout("layouts/sidebar.tsx", [
index("routes/home.tsx"),
route("contacts/:contactId", "routes/contact.tsx"),
route(
"contacts/:contactId/edit",
"routes/edit-contact.tsx"
),
route("contacts/:contactId/edit", "routes/edit-contact.tsx"),
]),
route("about", "routes/about.tsx"),
] satisfies RouteConfig;
Expand Down Expand Up @@ -1336,14 +1334,12 @@ At this point you should know everything you need to know to make the delete but
touch app/routes/destroy-contact.tsx
```

```tsx filename=app/routes.ts lines=[3-6]
<!-- prettier-ignore -->
```tsx filename=app/routes.ts lines=[3]
export default [
// existing routes
route(
"contacts/:contactId/destroy",
"routes/destroy-contact.tsx"
),
// existing routes
// existing routes
route("contacts/:contactId/destroy", "routes/destroy-contact.tsx"),
// existing routes
] satisfies RouteConfig;
```

Expand Down

0 comments on commit 2aab1e9

Please sign in to comment.