mirror of
https://gh.wpcy.net/https://github.com/elementor/hello-theme.git
synced 2026-04-27 12:12:21 +08:00
Some checks failed
Build / Build theme (push) Has been cancelled
Lint / ESLint (push) Has been cancelled
Lint / PHPCS (push) Has been cancelled
PHPUnit / File Diff (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.5 - PHP version 7.4 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.6 - PHP version 7.4 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress latest - PHP version 7.4 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress nightly - PHP version 7.4 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.5 - PHP version 8.0 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.6 - PHP version 8.0 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress latest - PHP version 8.0 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.0 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.5 - PHP version 8.1 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.6 - PHP version 8.1 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress latest - PHP version 8.1 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.1 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.5 - PHP version 8.2 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.6 - PHP version 8.2 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress latest - PHP version 8.2 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.2 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.5 - PHP version 8.3 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress 6.6 - PHP version 8.3 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress latest - PHP version 8.3 (push) Has been cancelled
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.3 (push) Has been cancelled
PHPUnit / PHPUnit - Test Results (push) Has been cancelled
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
import Dialog from '@elementor/ui/Dialog';
|
|
import DialogContent from '@elementor/ui/DialogContent';
|
|
import DialogHeader from '@elementor/ui/DialogHeader';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { __ } from '@wordpress/i18n';
|
|
import Stack from '@elementor/ui/Stack';
|
|
import Update from './update';
|
|
import Divider from '@elementor/ui/Divider';
|
|
import { PlusIcon } from './plus-icon';
|
|
import { Fragment } from 'react';
|
|
|
|
export const ChangelogDialog = ( { open, onClose, whatsNew } ) => {
|
|
return (
|
|
<Dialog
|
|
open={ open }
|
|
onClose={ onClose }
|
|
maxWidth="sm"
|
|
fullWidth
|
|
>
|
|
<DialogHeader
|
|
onClose={ onClose }
|
|
variant="outlined"
|
|
logo={ <PlusIcon /> }
|
|
>
|
|
<Typography variant="overline" sx={ { textTransform: 'uppercase', fontWeight: 400, color: 'text.primary' } }>
|
|
{ __( 'Changelog', 'hello-elementor' ) }
|
|
</Typography>
|
|
</DialogHeader>
|
|
|
|
<DialogContent sx={ { p: 0 } }>
|
|
<Stack direction={ 'column' } >
|
|
{ whatsNew.map( ( item, index ) => {
|
|
return (
|
|
<Fragment key={ item.id } >
|
|
<Update { ...item } />
|
|
{ index !== whatsNew.length - 1 && <Divider /> }
|
|
</Fragment>
|
|
);
|
|
} ) }
|
|
</Stack>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|