change(ui): small ref for code style

This commit is contained in:
sylenien 2022-12-28 11:59:10 +01:00
parent 8e6eb8ac1b
commit 9feb0bb91f
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ function FilterSeries(props: Props) {
observeChanges()
}
const onChangeEventsOrder = (e: any, { name, value }: any) => {
const onChangeEventsOrder = (_: any, { name, value }: any) => {
series.filter.updateKey(name, value)
observeChanges()
}

View file

@ -83,11 +83,11 @@ function EventsBlock(props: IProps) {
}
}, [currentTimeEventIndex])
const onEventClick = (_: React.MouseEvent, event: any) => player.jump(event.time)
const onEventClick = (_: React.MouseEvent, event: { time: number }) => player.jump(event.time)
const onMouseOver = () => setMouseOver(true)
const onMouseLeave = () => setMouseOver(false)
const renderGroup = ({ index, key, style, parent }: { index: number; key: string; style: any; parent: any }) => {
const renderGroup = ({ index, key, style, parent }: { index: number; key: string; style: React.CSSProperties; parent: any }) => {
const isLastEvent = index === usedEvents.size - 1;
const isLastInGroup = isLastEvent || usedEvents.get(index + 1)?.type === TYPES.LOCATION;
const event = usedEvents.get(index);