Skip to content

Commit dcb22a1

Browse files
committed
fix: updated to prettier 2
1 parent a45145b commit dcb22a1

File tree

60 files changed

+594
-601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+594
-601
lines changed

src/Annotator/index.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
Image,
99
Mode,
1010
MainLayoutState,
11-
Action
11+
Action,
1212
} from "../MainLayout/types"
1313
import SettingsProvider from "../SettingsProvider"
1414

@@ -35,11 +35,11 @@ type Props = {
3535
showPointDistances?: boolean,
3636
pointDistancePrecision?: number,
3737
RegionEditLabel?: Node,
38-
onExit: MainLayoutState => any,
38+
onExit: (MainLayoutState) => any,
3939
videoTime?: number,
4040
videoSrc?: string,
4141
keyframes?: Object,
42-
videoName?: string
42+
videoName?: string,
4343
}
4444

4545
export const Annotator = ({
@@ -62,7 +62,7 @@ export const Annotator = ({
6262
videoName,
6363
onExit,
6464
onNextImage,
65-
onPrevImage
65+
onPrevImage,
6666
}: Props) => {
6767
if (!images && !videoSrc)
6868
return 'Missing required prop "images" or "videoSrc"'
@@ -97,12 +97,12 @@ export const Annotator = ({
9797
selectedImage,
9898
images,
9999
selectedImageFrameTime:
100-
images && images.length > 0 ? images[0].frameTime : undefined
100+
images && images.length > 0 ? images[0].frameTime : undefined,
101101
}
102102
: {
103103
videoSrc,
104-
keyframes
105-
})
104+
keyframes,
105+
}),
106106
})
107107
)
108108

@@ -120,7 +120,10 @@ export const Annotator = ({
120120
})
121121

122122
useEffect(() => {
123-
dispatchToReducer({ type: "SELECT_IMAGE", image: state.images.find(img => img.src === selectedImage) })
123+
dispatchToReducer({
124+
type: "SELECT_IMAGE",
125+
image: state.images.find((img) => img.src === selectedImage),
126+
})
124127
}, [selectedImage])
125128

126129
return (

0 commit comments

Comments
 (0)