PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.1.5
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.1.5
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / admin / components / Switch.js

Switch.js in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 3.1.5, at admin/components/Switch.js

16 lines 602 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react'
2
3 const Switch = ({data, handleChange}) => {
4 return (
5 <div className="control-wrapper blocksape-dashboard__switch-control">
6 <label className="control-title" for={`blockspare-dashboard-${data.slug}`}>
7 <input id={`blockspare-dashboard-${data.slug}`} onChange={(event) => handleChange(event, data.slug)} type="checkbox" checked={data.isEnabled} name={data.name} />
8 <span className="switch" ></span>
9 </label>
10 <span className="control-description"></span>
11 </div>
12 )
13 }
14
15 export default Switch
16