Server IP : 192.64.112.168 / Your IP : 3.133.145.168 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/plugins/envato-elements/src/js/react/components/Grid/ |
Upload File : |
import React from 'react' import styles from './GridItem.module.scss' const GridItem = ({ colWidthPercentage = 20, children, className, ...rest }) => { const gridItemClasses = [styles.item] if (colWidthPercentage === 20) { gridItemClasses.push(styles.widthTwenty) } if (colWidthPercentage === 25) { gridItemClasses.push(styles.widthTwentyFive) } if (colWidthPercentage === 33) { gridItemClasses.push(styles.widthThirtyThree) } if (colWidthPercentage === 40) { gridItemClasses.push(styles.widthFourty) } if (colWidthPercentage === 50) { gridItemClasses.push(styles.widthFifty) } if (colWidthPercentage === 60) { gridItemClasses.push(styles.widthSixty) } if (colWidthPercentage === 100) { gridItemClasses.push(styles.widthFull) } if (className) { gridItemClasses.push(className) } return ( <div className={gridItemClasses.join(' ')} {...rest}> {children} </div> ) } export default GridItem