Browse
For agents
About
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce
/
3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce
v3.3.0
Switch version
3.3.0
3.2.1
3.2.0
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.1
trunk
1.0.4
1.1.0
1.1.0.1
1.1.1
1.1.10
1.1.11
1.1.12
1.1.13
1.1.14
1.1.15
1.1.16
1.1.17
1.1.18
1.1.19
1.1.2
All 162 releases
Overview
Code
cartflows
/
modules
/
gutenberg
/
src
/
components
/
separator
/
index.js
index.js
in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/gutenberg/src/components/separator/index.js
20 lines
388 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
/**
2
* External dependencies
3
*/
4
import
styles
from
'
./editor.lazy.scss
'
;
5
import
React
,
{
useLayoutEffect
}
from
'
react
'
;
6
7
const
Separator
=
(
)
=>
{
8
//
Add and remove the CSS on the drop and remove of the component.
9
useLayoutEffect
(
(
)
=>
{
10
styles
.
use
(
)
;
11
return
(
)
=>
{
12
styles
.
unuse
(
)
;
13
}
;
14
}
,
[
]
)
;
15
16
return
<
div
className
=
"
spectra-separator
"
/>
;
17
}
;
18
19
export
default
Separator
;
20