Skip to content

Commit 2aab1e9

Browse files
committed
docs(tutorial): remove line breaks in new route definitions
1 parent ac399b7 commit 2aab1e9

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

contributors.yml

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
- coryhouse
7272
- ctnelson1997
7373
- cvbuelow
74+
- dadamssg
7475
- damianstasik
7576
- danielberndt
7677
- daniilguit

docs/tutorials/address-book.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -987,15 +987,13 @@ touch app/routes/edit-contact.tsx
987987

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

990-
```tsx filename=app/routes.ts lines=[5-8]
990+
<!-- prettier-ignore -->
991+
```tsx filename=app/routes.ts lines=[5]
991992
export default [
992993
layout("layouts/sidebar.tsx", [
993994
index("routes/home.tsx"),
994995
route("contacts/:contactId", "routes/contact.tsx"),
995-
route(
996-
"contacts/:contactId/edit",
997-
"routes/edit-contact.tsx"
998-
),
996+
route("contacts/:contactId/edit", "routes/edit-contact.tsx"),
999997
]),
1000998
route("about", "routes/about.tsx"),
1001999
] satisfies RouteConfig;
@@ -1336,14 +1334,12 @@ At this point you should know everything you need to know to make the delete but
13361334
touch app/routes/destroy-contact.tsx
13371335
```
13381336

1339-
```tsx filename=app/routes.ts lines=[3-6]
1337+
<!-- prettier-ignore -->
1338+
```tsx filename=app/routes.ts lines=[3]
13401339
export default [
1341-
// existing routes
1342-
route(
1343-
"contacts/:contactId/destroy",
1344-
"routes/destroy-contact.tsx"
1345-
),
1346-
// existing routes
1340+
// existing routes
1341+
route("contacts/:contactId/destroy", "routes/destroy-contact.tsx"),
1342+
// existing routes
13471343
] satisfies RouteConfig;
13481344
```
13491345

0 commit comments

Comments
 (0)