Skip to content

Commit b50ecf3

Browse files
committed
Revert "Play with options ad #3"
This reverts commit 6fdd0a5.
1 parent 6fdd0a5 commit b50ecf3

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

App/containers/App.js

Lines changed: 9 additions & 0 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

@@ -83,6 +84,14 @@ class App extends Component {
8384
hasObfuscatedCode={hasObfuscatedCode}
8485
/>
8586

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+
8695
<OptionsContainer/>
8796

8897
<ConsentHandler />

App/containers/CodeContainer.js

Lines changed: 8 additions & 26 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

@@ -173,32 +172,15 @@ class CodeContainer extends Component {
173172
render: () => (
174173
<Pane>
175174
<EditorContainer onBlur={::this.onCodeChange} value={code}/>
176-
177175
<Segment basic>
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>
176+
<Button
177+
loading={pending}
178+
disabled={pending}
179+
primary
180+
onClick={onObfuscateClick}
181+
>
182+
Obfuscate
183+
</Button>
202184
</Segment>
203185
</Pane>
204186
)

0 commit comments

Comments
 (0)