Skip to content

Commit 6fdd0a5

Browse files
committed
Play with options ad #3
1 parent 7c56e15 commit 6fdd0a5

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

App/containers/App.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
3-
import {Adsense} from '@ctrl/react-adsense';
43

54
import {connect} from 'react-redux';
65

@@ -84,14 +83,6 @@ class App extends Component {
8483
hasObfuscatedCode={hasObfuscatedCode}
8584
/>
8685

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-
9586
<OptionsContainer/>
9687

9788
<ConsentHandler />

App/containers/CodeContainer.js

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
3+
import {Adsense} from '@ctrl/react-adsense';
34

45
import {connect} from 'react-redux';
56

@@ -172,15 +173,32 @@ class CodeContainer extends Component {
172173
render: () => (
173174
<Pane>
174175
<EditorContainer onBlur={::this.onCodeChange} value={code}/>
176+
175177
<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>
184202
</Segment>
185203
</Pane>
186204
)

0 commit comments

Comments
 (0)