File tree Expand file tree Collapse file tree 2 files changed +26
-17
lines changed Expand file tree Collapse file tree 2 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
- import { Adsense } from '@ctrl/react-adsense' ;
4
3
5
4
import { connect } from 'react-redux' ;
6
5
@@ -84,14 +83,6 @@ class App extends Component {
84
83
hasObfuscatedCode = { hasObfuscatedCode }
85
84
/>
86
85
87
- < div style = { { width : '100%' , marginTop : '8px' , marginBottom : '8px' } } >
88
- < Adsense
89
- client = "ca-pub-5000712498982649"
90
- slot = "1666508371"
91
- format = "auto"
92
- />
93
- </ div >
94
-
95
86
< OptionsContainer />
96
87
97
88
< ConsentHandler />
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
+ import { Adsense } from '@ctrl/react-adsense' ;
3
4
4
5
import { connect } from 'react-redux' ;
5
6
@@ -172,15 +173,32 @@ class CodeContainer extends Component {
172
173
render : ( ) => (
173
174
< Pane >
174
175
< EditorContainer onBlur = { ::this . onCodeChange } value = { code } />
176
+
175
177
< Segment basic >
176
- < Button
177
- loading = { pending }
178
- disabled = { pending }
179
- primary
180
- onClick = { onObfuscateClick }
181
- >
182
- Obfuscate
183
- </ Button >
178
+ < div style = { {
179
+ display : 'flex' ,
180
+ alignItems : 'center'
181
+ } } >
182
+ < Button
183
+ loading = { pending }
184
+ disabled = { pending }
185
+ primary
186
+ onClick = { onObfuscateClick }
187
+ >
188
+ Obfuscate
189
+ </ Button >
190
+
191
+ < div style = { {
192
+ flexGrow : 1 ,
193
+ marginLeft : '8px' ,
194
+ } } >
195
+ < Adsense
196
+ client = "ca-pub-5000712498982649"
197
+ slot = "1666508371"
198
+ format = "horizontal"
199
+ />
200
+ </ div >
201
+ </ div >
184
202
</ Segment >
185
203
</ Pane >
186
204
)
You can’t perform that action at this time.
0 commit comments