mirror of
https://github.com/elementor/hello-theme.git
synced 2026-07-28 15:06:20 +08:00
Some checks failed
Build / Build theme (push) Failing after 1s
Lint / ESLint (push) Failing after 0s
PHPUnit / File Diff (push) Failing after 1s
Lint / PHPCS (push) Failing after 41s
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - Test Results (push) Successful in 2s
* Setup prettier * Fix lint/format issues
37 lines
781 B
JavaScript
37 lines
781 B
JavaScript
import Grid from '@elementor/ui/Grid';
|
|
import { PromotionsList } from '../../components/promotions/list';
|
|
import useMediaQuery from '@elementor/ui/useMediaQuery';
|
|
|
|
export const GridWithActionLinks = ({ children }) => {
|
|
const isSmallScreen = useMediaQuery((theme) => theme.breakpoints.down('sm'));
|
|
|
|
return (
|
|
<Grid container spacing={2}>
|
|
<Grid
|
|
item
|
|
sx={{ p: 0 }}
|
|
xs={12}
|
|
sm={isSmallScreen ? 12 : true}
|
|
md={isSmallScreen ? 12 : true}
|
|
lg={isSmallScreen ? 12 : true}
|
|
xl={isSmallScreen ? 12 : true}
|
|
>
|
|
{children}
|
|
</Grid>
|
|
{!isSmallScreen && (
|
|
<Grid
|
|
item
|
|
sx={{ p: 0 }}
|
|
xs={12}
|
|
sm={12}
|
|
md={12}
|
|
lg={3}
|
|
xl={3}
|
|
style={{ maxWidth: 300 }}
|
|
>
|
|
<PromotionsList />
|
|
</Grid>
|
|
)}
|
|
</Grid>
|
|
);
|
|
};
|