mirror of
https://github.com/elementor/hello-theme.git
synced 2026-08-02 16:10:23 +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
772 B
JavaScript
35 lines
772 B
JavaScript
import { createRoot } from 'react-dom/client';
|
|
import { AdminProvider } from './providers/admin-provider';
|
|
import { AdminPage } from './pages/admin-page';
|
|
import Box from '@elementor/ui/Box';
|
|
import Container from '@elementor/ui/Container';
|
|
|
|
const App = () => {
|
|
return (
|
|
<AdminProvider>
|
|
<Box sx={{ pr: 1 }}>
|
|
<Container
|
|
disableGutters={true}
|
|
maxWidth="lg"
|
|
sx={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
pt: { xs: 2, md: 6 },
|
|
pb: 2,
|
|
}}
|
|
>
|
|
<AdminPage />
|
|
</Container>
|
|
</Box>
|
|
</AdminProvider>
|
|
);
|
|
};
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const container = document.getElementById('ehe-admin-home');
|
|
|
|
if (container) {
|
|
const root = createRoot(container);
|
|
root.render(<App />);
|
|
}
|
|
});
|