Skip to content

Commit

Permalink
fix: ad google ads
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrad26 committed Jan 29, 2024
1 parent 0f443a2 commit 0a30192
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"svg",
"gif",
"axios",
"href"
"href",
"adsbygoogle"
]
}]
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@types/react-dom": "^18.2.4",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@unrealpixels/common-lib": "^0.1.10",
"@unrealpixels/common-lib": "^0.1.15",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"@vitejs/plugin-react": "^4.0.4",
"axios": "^1.4.0",
Expand Down
3 changes: 2 additions & 1 deletion src/views/App/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import './App.scss';
import { Header, Wrapper } from '@unrealpixels/common-lib';
import { GoogleAd, Header, Wrapper } from '@unrealpixels/common-lib';
import { type RouteComponentProps, withRouter } from 'react-router-dom';

class App extends React.Component<RouteComponentProps> {
Expand Down Expand Up @@ -42,6 +42,7 @@ class App extends React.Component<RouteComponentProps> {
<label className="json-entry--label" htmlFor="json-entry">Enter or Paste JSON</label>
<textarea className="json-entry" rows={25} id='json-entry' value={text} onChange={event => { this.setState({ text: event.target.value }); }} />
<button type="button" className="json-entry--button" disabled={!text} onClick={this.parseJson}>Parse JSON</button>
<GoogleAd adSlot="3684249047" />
</Wrapper>
</>
);
Expand Down

0 comments on commit 0a30192

Please sign in to comment.