Skip to content

Commit b9302be

Browse files
committed
docs: [] update guidance
1 parent 6402779 commit b9302be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/tutorials/contentful-and-the-starter-template.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ The new field is now available, let's add a value in the `Homepage` entry:
129129

130130
Now, let's connect the new `Greeting` field to our Starter Template source code:
131131

132-
- In your terminal of choice, run `yarn run graphql-codegen:generate`, this script will sync the Starter Template's source code with the web app content models, and generate the necessary updated typings files.
132+
- In your terminal of choice, run `yarn run graphql-codegen:watch`, this script will sync the Starter Template's source code with the web app content models, and generate the necessary updated typings files, as soon as a change is made in a `.graphql` file.
133133
- In our case, it will update the typings of our `💎 Hero banner component` content type, to make the `Greeting` field available.
134134
- Open the `ctf-hero-banner.graphql` file, this file represents the query made to Contentful to get the `💎 Hero banner component` content type fields values
135-
- Follow the comment in the file, line #7.
135+
- Follow the comment in the file, line #7, save the changes.
136136
- Open the `ctf-hero-banner.tsx` file, this file represents the `💎 Hero banner component` content type.
137-
- Follow the comments in the file, lines #99 and #142.
137+
- Follow the comments in the file, lines #99 and #142, save the changes.
138138
- Navigate to the running Starter Template application, [http://localhost:3000/](http://localhost:3000/)
139139
- If the application is not running yet, in your terminal of choice, run `yarn dev`.
140140
- You should see the `Greeting` field in the Homepage - Hero section.

src/components/features/ctf-components/ctf-hero-banner/ctf-hero-banner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const CtfHeroBanner = (props: HeroBannerFieldsFragment) => {
9999
imageStyle: imageStyleBoolean,
100100
headline,
101101
// Tutorial: uncomment the line below to make the Greeting field available to render
102-
// greeting
102+
// greeting,
103103
bodyText,
104104
ctaText,
105105
targetPage,

0 commit comments

Comments
 (0)