Skip to content

Commit

Permalink
update(audio-annotator-react): update onAnnotationSelect arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Nov 19, 2024
1 parent f17f94a commit a15cfcc
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ export default function AsideAttributeItem({ annotation, active, order, labelTex
const { start, end } = annotation;

return (
<AsideAttributeWrapper color={color} active={active} onClick={() => onAnnotationSelect(annotation)}>
<AsideAttributeWrapper
color={color}
active={active}
onClick={(e: React.MouseEvent) => onAnnotationSelect(annotation, e)}
>
<Header>
<InnerHeader>
<div>{order}.</div>
Expand All @@ -247,7 +251,11 @@ export default function AsideAttributeItem({ annotation, active, order, labelTex
const { time } = annotation;

return (
<AsideAttributeWrapper color={color} active={active} onClick={() => onAnnotationSelect(annotation)}>
<AsideAttributeWrapper
color={color}
active={active}
onClick={(e: React.MouseEvent) => onAnnotationSelect(annotation, e)}
>
<Header>
<InnerHeader>
<div>{order}.</div>
Expand Down

0 comments on commit a15cfcc

Please sign in to comment.