refactor: Remove unecessary data-header & ?? noop for event listener

This commit is contained in:
Cole Lawrence 2022-08-01 10:21:22 -04:00
parent 704f74a2c5
commit 74b338ac17

View file

@ -1,7 +1,6 @@
import type {VoidFn} from '@theatre/shared/utils/types'
import React from 'react'
import styled, {css} from 'styled-components'
import noop from '@theatre/shared/utils/noop'
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
import {ChevronDown, Package} from '@theatre/studio/uiComponents/icons'
@ -140,7 +139,7 @@ const BaseItem: React.FC<{
{'--depth': depth}
}
>
<Header className={selectionStatus} onClick={select ?? noop} data-header>
<Header className={selectionStatus} onClick={select}>
<Head_IconContainer>
{canContainChildren ? (
<Head_Icon_WithDescendants isOpen={true}>