mirror of
https://github.com/elementor/hello-theme.git
synced 2026-07-27 14:01:37 +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
35 lines
920 B
JavaScript
35 lines
920 B
JavaScript
import { BaseAdminPaper } from './base-admin-paper';
|
|
import Stack from '@elementor/ui/Stack';
|
|
import { ColumnLinkGroup } from '../linkGroup/column-link-group';
|
|
import { __ } from '@wordpress/i18n';
|
|
import { useAdminContext } from '../../hooks/use-admin-context';
|
|
|
|
export const SiteParts = () => {
|
|
const {
|
|
adminSettings: {
|
|
siteParts: { siteParts = [], sitePages = [], general = [] } = {},
|
|
} = {},
|
|
} = useAdminContext();
|
|
|
|
return (
|
|
<BaseAdminPaper>
|
|
<Stack direction="row" gap={12}>
|
|
<ColumnLinkGroup
|
|
title={__('Site Parts', 'hello-elementor')}
|
|
links={siteParts}
|
|
sx={{ minWidth: '25%' }}
|
|
/>
|
|
<ColumnLinkGroup
|
|
title={__('Recent Pages', 'hello-elementor')}
|
|
links={sitePages}
|
|
sx={{ minWidth: '25%' }}
|
|
/>
|
|
<ColumnLinkGroup
|
|
title={__('General', 'hello-elementor')}
|
|
links={general}
|
|
sx={{ minWidth: '25%' }}
|
|
/>
|
|
</Stack>
|
|
</BaseAdminPaper>
|
|
);
|
|
};
|