File tree Expand file tree Collapse file tree 2 files changed +72
-19
lines changed
Expand file tree Collapse file tree 2 files changed +72
-19
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export const SiteSettings = ( {
138138 console . error ( error ) ;
139139 } ) ;
140140 } ;
141-
141+
142142 return (
143143 < div
144144 className = { classnames (
@@ -149,23 +149,24 @@ export const SiteSettings = ( {
149149 { ! fetching ? (
150150 < >
151151 < div className = "ob-site-settings-container" >
152+ < div className = "ob-settings-header" >
153+ < div className = "ob-settings-info" >
154+ < p > { __ ( 'Selected Template' , 'templates-patterns-collection' ) } </ p >
155+ < h3 > { siteData . title } </ h3 >
156+ </ div >
157+ < div className = "ob-settings-actions" >
158+ < Button
159+ className = "ob-link"
160+ variant = "link"
161+ onClick = { ( ) => {
162+ setOnboardingStep ( 2 ) ;
163+ } }
164+ >
165+ < span className = "dashicons dashicons-no-alt" />
166+ </ Button >
167+ </ div >
168+ </ div >
152169 < div className = "ob-settings-description" >
153- < Button
154- className = "ob-back"
155- type = "link"
156- onClick = { ( ) => {
157- if ( step === 4 ) {
158- setOnboardingStep ( 3 ) ;
159- return ;
160- }
161- setOnboardingStep ( 2 ) ;
162- } }
163- >
164- { __ (
165- 'Go back' ,
166- 'templates-patterns-collection'
167- ) }
168- </ Button >
169170 < h2 > { heading } </ h2 >
170171 < p > { description } </ p >
171172 </ div >
@@ -285,7 +286,24 @@ export const SiteSettings = ( {
285286 < p > { firstUpsell } </ p >
286287 < p > { secondUpsell } </ p >
287288 </ div >
288- ) ) }
289+ ) )
290+ }
291+ < Button
292+ className = "ob-link"
293+ variant = "link"
294+ onClick = { ( ) => {
295+ if ( step === 4 ) {
296+ setOnboardingStep ( 3 ) ;
297+ return ;
298+ }
299+ setOnboardingStep ( 2 ) ;
300+ } }
301+ >
302+ { __ (
303+ 'Go back' ,
304+ 'templates-patterns-collection'
305+ ) }
306+ </ Button >
289307 </ div >
290308 </ >
291309 ) : (
Original file line number Diff line number Diff line change 1212 display : flex ;
1313 flex-direction : column ;
1414 flex : 1 ;
15- padding : 0 24 px ;
15+
1616 overflow : auto ;
17+
18+ & > * {
19+ padding : 0 24px ;
20+ }
21+ }
22+
23+ .ob-settings-header {
24+ display : flex ;
25+ flex-direction : row ;
26+ align-items : center ;
27+ border-bottom : 1px solid $light-bg ;
28+ padding : 15px 24px ;
29+ }
30+
31+ .ob-settings-info {
32+ display : flex ;
33+ flex-direction : column ;
34+ flex-grow : 1 ;
35+ gap : 7px ;
36+
37+ & > * {
38+ margin : 0 ;
39+ padding : 0 ;
40+ line-height : 1 ;
41+ }
42+
43+ p {
44+ margin : 0 ;
45+ font-size : 14px ;
46+ font-weight : 400 ;
47+ }
48+
49+ h3 {
50+ font-size : 18px ;
51+ }
1752}
1853
1954.ob-settings-description {
You can’t perform that action at this time.
0 commit comments