refactor: Remove unecessary data-header
& ?? noop
for event listener
This commit is contained in:
parent
704f74a2c5
commit
74b338ac17
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
import type {VoidFn} from '@theatre/shared/utils/types'
|
import type {VoidFn} from '@theatre/shared/utils/types'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled, {css} from 'styled-components'
|
import styled, {css} from 'styled-components'
|
||||||
import noop from '@theatre/shared/utils/noop'
|
|
||||||
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
||||||
import {ChevronDown, Package} from '@theatre/studio/uiComponents/icons'
|
import {ChevronDown, Package} from '@theatre/studio/uiComponents/icons'
|
||||||
|
|
||||||
|
@ -140,7 +139,7 @@ const BaseItem: React.FC<{
|
||||||
{'--depth': depth}
|
{'--depth': depth}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Header className={selectionStatus} onClick={select ?? noop} data-header>
|
<Header className={selectionStatus} onClick={select}>
|
||||||
<Head_IconContainer>
|
<Head_IconContainer>
|
||||||
{canContainChildren ? (
|
{canContainChildren ? (
|
||||||
<Head_Icon_WithDescendants isOpen={true}>
|
<Head_Icon_WithDescendants isOpen={true}>
|
||||||
|
|
Loading…
Reference in a new issue