PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.0-beta1
Elementor Website Builder – more than just a page builder v3.8.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / app / modules / kit-library / assets / js / pages / overview / overview-content-group.js

overview-content-group.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/modules/kit-library/assets/js/pages/overview/overview-content-group.js

29 lines 990 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import ContentType from '../../models/content-type';
2 import OverviewContentGroupItem from './overview-content-group-item';
3 import { Heading, CssGrid } from '@elementor/app-ui';
4
5 export default function OverviewContentGroup( props ) {
6 if ( props.contentType?.documents?.length <= 0 ) {
7 return '';
8 }
9
10 return (
11 <div className="e-kit-library__content-overview-group-item">
12 <Heading tag="h3" variant="h3" className="e-kit-library__content-overview-group-title">
13 { props.contentType.label }
14 </Heading>
15 <CssGrid spacing={ 24 } colMinWidth={ 250 }>
16 { props.contentType.documents.map( ( document ) => {
17 return <OverviewContentGroupItem key={ document.id } document={ document } kitId={ props.kitId } kitTitle={ props.kitTitle } groupData={ props.contentType } />;
18 } ) }
19 </CssGrid>
20 </div>
21 );
22 }
23
24 OverviewContentGroup.propTypes = {
25 contentType: PropTypes.instanceOf( ContentType ),
26 kitId: PropTypes.string.isRequired,
27 kitTitle: PropTypes.string.isRequired,
28 };
29