Skip to content

Commit 52ee4c2

Browse files
thetaPCShaneK
andcommitted
docs(react): add missing parantheseis
Co-authored-by: Shane <[email protected]>
1 parent 7f45e6f commit 52ee4c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ After taking a photo, it disappears right away. We need to display it within our
9696
To define the data structure for our photo metadata, create a new interface named `UserPhoto`. Add this interface at the very bottom of the `usePhotoGallery.ts` file, immediately after the `usePhotoGallery()` method definition.
9797

9898
```ts
99-
export function usePhotoGallery {
99+
export function usePhotoGallery() {
100100
// ...existing code...
101101
}
102102

@@ -114,7 +114,7 @@ Above the `addNewToGallery()` method, define an array of `UserPhoto`, which will
114114
import { useState } from 'react';
115115
import { Camera, CameraResultType, CameraSource } from '@capacitor/camera';
116116

117-
export function usePhotoGallery {
117+
export function usePhotoGallery() {
118118
// CHANGE: Add the `photos` array
119119
const [photos, setPhotos] = useState<UserPhoto[]>([]);
120120

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ After taking a photo, it disappears right away. We need to display it within our
9696
To define the data structure for our photo metadata, create a new interface named `UserPhoto`. Add this interface at the very bottom of the `usePhotoGallery.ts` file, immediately after the `usePhotoGallery()` method definition.
9797

9898
```ts
99-
export function usePhotoGallery {
99+
export function usePhotoGallery() {
100100
// ...existing code...
101101
}
102102

@@ -114,7 +114,7 @@ Above the `addNewToGallery()` method, define an array of `UserPhoto`, which will
114114
import { useState } from 'react';
115115
import { Camera, CameraResultType, CameraSource } from '@capacitor/camera';
116116

117-
export function usePhotoGallery {
117+
export function usePhotoGallery() {
118118
// CHANGE: Add the `photos` array
119119
const [photos, setPhotos] = useState<UserPhoto[]>([]);
120120

0 commit comments

Comments
 (0)