Skip to content

Commit e289c03

Browse files
thetaPCShaneK
andcommitted
docs(react): correct typo on usePhotoGallery
Co-authored-by: Shane <[email protected]>
1 parent 52ee4c2 commit e289c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/react/your-first-app/2-taking-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function usePhotoGallery() {
122122
}
123123
```
124124

125-
Over in the `addNewToGallery()` method, add the newly captured photo to the beginning of the `photos` array. Then, update the `userPhotoGallery()` return statement with the `photos` array.
125+
Over in the `addNewToGallery()` method, add the newly captured photo to the beginning of the `photos` array. Then, update the `usePhotoGallery()` return statement with the `photos` array.
126126

127127
```ts
128128
export function usePhotoGallery() {

versioned_docs/version-v7/react/your-first-app/2-taking-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function usePhotoGallery() {
122122
}
123123
```
124124

125-
Over in the `addNewToGallery()` method, add the newly captured photo to the beginning of the `photos` array. Then, update the `userPhotoGallery()` return statement with the `photos` array.
125+
Over in the `addNewToGallery()` method, add the newly captured photo to the beginning of the `photos` array. Then, update the `usePhotoGallery()` return statement with the `photos` array.
126126

127127
```ts
128128
export function usePhotoGallery() {

0 commit comments

Comments
 (0)