Remove unused usePrism()
This commit is contained in:
parent
dc7e5a1128
commit
58bf030aaa
1 changed files with 20 additions and 23 deletions
|
@ -1,5 +1,4 @@
|
||||||
import type {SequenceEditorTree_SheetObject} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
import type {SequenceEditorTree_SheetObject} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||||
import {usePrism} from '@theatre/react'
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import AnyCompositeRow from './AnyCompositeRow'
|
import AnyCompositeRow from './AnyCompositeRow'
|
||||||
import {decideRowByPropType} from './PropWithChildrenRow'
|
import {decideRowByPropType} from './PropWithChildrenRow'
|
||||||
|
@ -9,7 +8,6 @@ import getStudio from '@theatre/studio/getStudio'
|
||||||
const LeftSheetObjectRow: React.VFC<{
|
const LeftSheetObjectRow: React.VFC<{
|
||||||
leaf: SequenceEditorTree_SheetObject
|
leaf: SequenceEditorTree_SheetObject
|
||||||
}> = ({leaf}) => {
|
}> = ({leaf}) => {
|
||||||
return usePrism(() => {
|
|
||||||
return (
|
return (
|
||||||
<AnyCompositeRow
|
<AnyCompositeRow
|
||||||
leaf={leaf}
|
leaf={leaf}
|
||||||
|
@ -30,7 +28,6 @@ const LeftSheetObjectRow: React.VFC<{
|
||||||
{leaf.children.map((leaf) => decideRowByPropType(leaf))}
|
{leaf.children.map((leaf) => decideRowByPropType(leaf))}
|
||||||
</AnyCompositeRow>
|
</AnyCompositeRow>
|
||||||
)
|
)
|
||||||
}, [leaf])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default LeftSheetObjectRow
|
export default LeftSheetObjectRow
|
||||||
|
|
Loading…
Reference in a new issue