We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0bbd1 commit ed2fe4aCopy full SHA for ed2fe4a
src/MainLayout/index.jsx
@@ -166,7 +166,9 @@ export const MainLayout = ({
166
enabledRegionProps={enabledRegionProps}
167
/>
168
)
169
-
+ const onClickHeaderItem = useEventCallback((item) => {
170
+ dispatch({type: "HEADER_BUTTON_CLICKED", buttonName: item.name})
171
+ })
172
const debugModeOn = Boolean(window.localStorage.$ANNOTATE_DEBUG_MODE && state)
173
const nextImageHasRegions =
174
!nextImage || (nextImage.regions && nextImage.regions.length > 0)
0 commit comments