Skip to content

Commit 0ea150f

Browse files
add as child hover
1 parent 463d8cd commit 0ea150f

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

src/components/KonvaStage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class KonvaStage extends Component {
217217
draggable={true}
218218
blockSnapSize={this.state.blockSnapSize}
219219
imageSource={
220-
child.htmlElement == 'Image' && child.HTMLInfo.Src ? child.HTMLInfo.Src : null
220+
child.htmlElement === 'Image' && child.HTMLInfo.Src ? child.HTMLInfo.Src : null
221221
}
222222
/>
223223
))

src/components/LeftColExpansionPanel.jsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Grid from '@material-ui/core/Grid';
99
import AddIcon from '@material-ui/icons/Add';
1010
import DeleteIcon from '@material-ui/icons/Delete';
1111
import Button from '@material-ui/core/Button';
12+
import Tooltip from '@material-ui/core/Tooltip';
1213

1314
const LeftColExpansionPanel = (props) => {
1415
const {
@@ -110,14 +111,16 @@ const LeftColExpansionPanel = (props) => {
110111
{id === 1 || isFocused() || !selectableChildren.includes(id) ? (
111112
<div />
112113
) : (
113-
<IconButton
114-
aria-label="Add"
115-
onClick={() => {
116-
addChild({ title, childType: 'COMP' });
117-
}}
118-
>
119-
<AddIcon style={{ color, float: 'right' }} />
120-
</IconButton>
114+
<Tooltip title="add as child" aria-label="add as child" placement="left">
115+
<IconButton
116+
aria-label="Add"
117+
onClick={() => {
118+
addChild({ title, childType: 'COMP' });
119+
}}
120+
>
121+
<AddIcon style={{ color, float: 'right' }} />
122+
</IconButton>
123+
</Tooltip>
121124
)}
122125
</Grid>
123126
</Grid>

src/components/MainContainerHeader.jsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,22 @@ const MainContainerHeader = (props) => {
8080
</Button>
8181
</div>
8282
</Tooltip> */}
83-
<Tooltip title={'export'}>
84-
<div>
85-
<Button
86-
color="primary"
87-
variant="text"
88-
// variant="outlined"
89-
className={classes.clearButton}
90-
disabled={totalComponents < 1}
91-
onClick={showGenerateAppModal}
92-
>
93-
<GetAppIcon
94-
className={classes.light}
95-
style={{ paddingLeft: '5px', paddingRight: '5px' }}
96-
/>
97-
Export Project
98-
</Button>
99-
</div>
100-
</Tooltip>
83+
<div>
84+
<Button
85+
color="primary"
86+
variant="text"
87+
// variant="outlined"
88+
className={classes.clearButton}
89+
disabled={totalComponents < 1}
90+
onClick={showGenerateAppModal}
91+
>
92+
<GetAppIcon
93+
className={classes.light}
94+
style={{ paddingLeft: '5px', paddingRight: '5px' }}
95+
/>
96+
Export Project
97+
</Button>
98+
</div>
10199
</div>
102100
</div>
103101
);

0 commit comments

Comments
 (0)