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 / hasRequiredPlugins / ErrorInstalling.js

ErrorInstalling.js in Extendify 0.9.3, at src/Library/middleware/hasRequiredPlugins/ErrorInstalling.js

34 lines 1014 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 RequiredPluginsModal from './RequiredPluginsModal'
5
6 export default function ErrorInstalling({ msg }) {
7 const goBack = () =>
8 render(
9 <RequiredPluginsModal />,
10 document.getElementById('extendify-root'),
11 )
12
13 return (
14 <Modal
15 style={{
16 maxWidth: '500px',
17 }}
18 title={__('Error installing plugins', 'extendify')}
19 isDismissible={false}>
20 {__(
21 'You have encountered an error that we cannot recover from. Please try again.',
22 'extendify',
23 )}
24 <br />
25 <Notice isDismissible={false} status="error">
26 {msg}
27 </Notice>
28 <Button isPrimary onClick={goBack}>
29 {__('Go back', 'extendify')}
30 </Button>
31 </Modal>
32 )
33 }
34