File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed
src/admin/tools/components Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 4
4
import { __ } from '@wordpress/i18n' ;
5
5
import apiFetch from '@wordpress/api-fetch' ;
6
6
import { useContext } from '@wordpress/element' ;
7
- import { Button , PanelBody , __experimentalText as Text } from '@wordpress/components' ;
7
+ import {
8
+ Button ,
9
+ PanelBody ,
10
+ __experimentalText as Text ,
11
+ __experimentalVStack as VStack ,
12
+ } from '@wordpress/components' ;
8
13
9
14
/**
10
15
* Internal dependencies
@@ -46,15 +51,17 @@ export default function ExportTool() {
46
51
47
52
return (
48
53
< PanelBody title = { __ ( 'Export Editor Config' , 'custom-html-block-extension' ) } >
49
- < Text as = "p" >
50
- { __ (
51
- 'Use the download button to export the editor settings. You can restore the editor config by importing the exported file on another WordPress site.' ,
52
- 'custom-html-block-extension'
53
- ) }
54
- </ Text >
55
- < Button variant = "primary" onClick = { onExportOptions } __next40pxDefaultSize >
56
- { __ ( 'Export' , 'custom-html-block-extension' ) }
57
- </ Button >
54
+ < VStack align = "start" >
55
+ < Text as = "p" >
56
+ { __ (
57
+ 'Use the download button to export the editor settings. You can restore the editor config by importing the exported file on another WordPress site.' ,
58
+ 'custom-html-block-extension'
59
+ ) }
60
+ </ Text >
61
+ < Button variant = "primary" onClick = { onExportOptions } __next40pxDefaultSize >
62
+ { __ ( 'Export' , 'custom-html-block-extension' ) }
63
+ </ Button >
64
+ </ VStack >
58
65
</ PanelBody >
59
66
) ;
60
67
}
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ export default function ImportTool() {
87
87
88
88
return (
89
89
< PanelBody title = { __ ( 'Import editor config' , 'custom-html-block-extension' ) } >
90
- < Text as = "p" >
91
- { __ (
92
- 'Select the Custom HTML Block Extension JSON file you would like to import and click the import button below.' ,
93
- 'custom-html-block-extension'
94
- ) }
95
- </ Text >
96
90
< VStack spacing = { 4 } align = "start" >
91
+ < Text as = "p" >
92
+ { __ (
93
+ 'Select the Custom HTML Block Extension JSON file you would like to import and click the import button below.' ,
94
+ 'custom-html-block-extension'
95
+ ) }
96
+ </ Text >
97
97
< HStack spacing = { 4 } justify = "start" wrap >
98
98
< FormFileUpload
99
99
accept = "application/json"
You can’t perform that action at this time.
0 commit comments