11import { Element , useEditor } from '@craftjs/core' ;
22import { Tooltip } from '@material-ui/core' ;
33import React from 'react' ;
4- import styled from 'styled-components' ;
4+ import { styled } from 'styled-components' ;
55
66import ButtonSvg from '../../../public/icons/toolbox/button.svg' ;
77import SquareSvg from '../../../public/icons/toolbox/rectangle.svg' ;
@@ -12,20 +12,20 @@ import { Container } from '../../selectors/Container';
1212import { Text } from '../../selectors/Text' ;
1313import { Video } from '../../selectors/Video' ;
1414
15- const ToolboxDiv = styled . div < { enabled : boolean } > `
15+ const ToolboxDiv = styled . div < { $ enabled : boolean } > `
1616 transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
17- ${ ( props ) => ( ! props . enabled ? `width: 0;` : '' ) }
18- ${ ( props ) => ( ! props . enabled ? `opacity: 0;` : '' ) }
17+ ${ ( props ) => ( ! props . $ enabled ? `width: 0;` : '' ) }
18+ ${ ( props ) => ( ! props . $ enabled ? `opacity: 0;` : '' ) }
1919` ;
2020
21- const Item = styled . a < { move ?: boolean } > `
21+ const Item = styled . a < { $ move ?: boolean } > `
2222 svg {
2323 width: 22px;
2424 height: 22px;
2525 fill: #707070;
2626 }
2727 ${ ( props ) =>
28- props . move &&
28+ props . $ move &&
2929 `
3030 cursor: move;
3131 ` }
@@ -41,7 +41,7 @@ export const Toolbox = () => {
4141
4242 return (
4343 < ToolboxDiv
44- enabled = { enabled && enabled }
44+ $ enabled= { enabled && enabled }
4545 className = "toolbox transition w-12 h-full flex flex-col bg-white"
4646 >
4747 < div className = "flex flex-1 flex-col items-center pt-3" >
@@ -61,7 +61,7 @@ export const Toolbox = () => {
6161 }
6262 >
6363 < Tooltip title = "Container" placement = "right" >
64- < Item className = "m-2 pb-2 cursor-pointer block" move >
64+ < Item className = "m-2 pb-2 cursor-pointer block" $ move>
6565 < SquareSvg />
6666 </ Item >
6767 </ Tooltip >
@@ -72,21 +72,21 @@ export const Toolbox = () => {
7272 }
7373 >
7474 < Tooltip title = "Text" placement = "right" >
75- < Item className = "m-2 pb-2 cursor-pointer block" move >
75+ < Item className = "m-2 pb-2 cursor-pointer block" $ move>
7676 < TypeSvg />
7777 </ Item >
7878 </ Tooltip >
7979 </ div >
8080 < div ref = { ( ref ) => create ( ref , < Button /> ) } >
8181 < Tooltip title = "Button" placement = "right" >
82- < Item className = "m-2 pb-2 cursor-pointer block" move >
82+ < Item className = "m-2 pb-2 cursor-pointer block" $ move>
8383 < ButtonSvg />
8484 </ Item >
8585 </ Tooltip >
8686 </ div >
8787 < div ref = { ( ref ) => create ( ref , < Video /> ) } >
8888 < Tooltip title = "Video" placement = "right" >
89- < Item className = "m-2 pb-2 cursor-pointer block" move >
89+ < Item className = "m-2 pb-2 cursor-pointer block" $ move>
9090 < YoutubeSvg />
9191 </ Item >
9292 </ Tooltip >
0 commit comments