File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
packages/app/src/app/pages/Sandbox/Editor/Workspace/WorkspaceItem Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import React from 'react';
22import { Animate as ReactShow } from 'react-show' ;
33
44import {
5+ Actions ,
56 ChildContainer ,
7+ ExpandIconContainer ,
68 ItemHeader ,
79 Title ,
8- ExpandIconContainer ,
9- Actions ,
1010} from './elements' ;
1111
1212type Props = {
@@ -68,11 +68,15 @@ export class WorkspaceItem extends React.Component<Props, State> {
6868 overflow : showOverflow ? 'initial' : 'hidden' ,
6969 } }
7070 transitionOnMount
71- start = { {
72- height : 0 , // The starting style for the component.
71+ start = {
72+ open
73+ ? null
74+ : {
75+ height : 0 , // The starting style for the component.
7376
74- // If the 'leave' prop isn't defined, 'start' is reused!
75- } }
77+ // If the 'leave' prop isn't defined, 'start' is reused!
78+ }
79+ }
7680 show = { open }
7781 duration = { 250 }
7882 stayMounted = { keepState }
You can’t perform that action at this time.
0 commit comments