1
1
import React , { FC , useState } from 'react'
2
2
import PropTypes from 'prop-types'
3
- import Helmet from 'react-helmet'
4
3
import { graphql } from 'gatsby'
5
4
import { MDXProvider } from '@mdx-js/react'
6
5
import { MDXRenderer } from 'gatsby-plugin-mdx'
7
- import { CodeBlock , Example , Footer , Header , Seo , Sidebar , Toc } from './../components/'
6
+ import { Ads , CodeBlock , Example , Footer , Header , Seo , Sidebar , Toc } from './../components/'
8
7
import { CCol , CContainer , CRow , CTable } from '@coreui/react/src/'
9
8
import './../styles/styles.scss'
10
9
@@ -28,9 +27,6 @@ const DocsLayout: FC = ({ data: { mdx } }) => {
28
27
return (
29
28
< >
30
29
< Seo title = { mdx . frontmatter . title } description = { mdx . frontmatter . description } />
31
- < Helmet >
32
- < script src = "https://media.ethicalads.io/media/client/ethicalads.min.js" />
33
- </ Helmet >
34
30
< myContext . Provider
35
31
value = { {
36
32
sidebarVisible,
@@ -46,7 +42,7 @@ const DocsLayout: FC = ({ data: { mdx } }) => {
46
42
< CCol lg = { 9 } >
47
43
< h1 > { mdx . frontmatter . title } </ h1 >
48
44
< p className = "docs-lead fs-4 fw-light" > { mdx . frontmatter . description } </ p >
49
- < div data-ea-publisher = "coreui-io" data-ea-type = "image" > </ div >
45
+ < Ads code = "CEAICKJY" placement = "coreuiio" / >
50
46
< MDXProvider components = { components } >
51
47
< MDXRenderer frontmatter = { mdx . frontmatter } > { mdx . body } </ MDXRenderer >
52
48
</ MDXProvider >
0 commit comments