PluginProbe
Extendify / 0.9.3
Extendify v0.9.3
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Library / middleware / hasPluginsActivated / ErrorActivating.js

ErrorActivating.js in Extendify 0.9.3, at src/Library/middleware/hasPluginsActivated/ErrorActivating.js

35 lines 1022 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Modal, Button, Notice } from '@wordpress/components'
2 import { render } from '@wordpress/element'
3 import { __ } from '@wordpress/i18n'
4 import ActivatePluginsModal from './ActivatePluginsModal'
5
6 export default function ErrorActivating({ msg }) {
7 const goBack = () => {
8 render(
9 <ActivatePluginsModal />,
10 document.getElementById('extendify-root'),
11 )
12 }
13
14 return (
15 <Modal
16 style={{
17 maxWidth: '500px',
18 }}
19 title={__('Error Activating plugins', 'extendify')}
20 isDismissible={false}>
21 {__(
22 'You have encountered an error that we cannot recover from. Please try again.',
23 'extendify',
24 )}
25 <br />
26 <Notice isDismissible={false} status="error">
27 {msg}
28 </Notice>
29 <Button isPrimary onClick={goBack}>
30 {__('Go back', 'extendify')}
31 </Button>
32 </Modal>
33 )
34 }
35