Skip to content

Commit fcb50ec

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

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

docs/tutorials/address-book.md

Lines changed: 8 additions & 12 deletions
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)