Skip to content

Commit ed2fe4a

Browse files
authored
Update src/MainLayout/index.jsx
1 parent ec0bbd1 commit ed2fe4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MainLayout/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export const MainLayout = ({
166166
enabledRegionProps={enabledRegionProps}
167167
/>
168168
)
169-
169+
const onClickHeaderItem = useEventCallback((item) => {
170+
dispatch({type: "HEADER_BUTTON_CLICKED", buttonName: item.name})
171+
})
170172
const debugModeOn = Boolean(window.localStorage.$ANNOTATE_DEBUG_MODE && state)
171173
const nextImageHasRegions =
172174
!nextImage || (nextImage.regions && nextImage.regions.length > 0)

0 commit comments

Comments
 (0)