Skip to content

Commit 72aed13

Browse files
committed
docs: update layout
1 parent edc6772 commit 72aed13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docs/src/templates/Docs.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { graphql } from 'gatsby'
55
import { MDXProvider } from '@mdx-js/react'
66
import { MDXRenderer } from 'gatsby-plugin-mdx'
77
import { CodeBlock, Example, Footer, Header, Seo, Sidebar, Toc } from './../components/'
8-
import { CCol, CContainer, CRow, CTable } from '@coreui/react/src/index'
8+
import { CCol, CContainer, CRow, CTable } from '@coreui/react/src/'
99
import './../styles/styles.scss'
1010

1111
interface ContextProps {
@@ -17,9 +17,9 @@ export const myContext = React.createContext({} as ContextProps)
1717

1818
const components = {
1919
// eslint-disable-next-line react/display-name
20-
pre: (props) => <CodeBlock {...props} />,
20+
pre: (props: any) => <CodeBlock {...props} />,
2121
// eslint-disable-next-line react/display-name
22-
table: (props) => <CTable responsive {...props} className="table table-striped table-api" />,
22+
table: (props: any) => <CTable responsive {...props} className="table table-striped table-api" />,
2323
Example,
2424
}
2525

packages/docs/src/templates/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
33
import Helmet from 'react-helmet'
44
import { Footer, Header } from './../components/'
55
import './../styles/styles.scss'
6-
import { CContainer } from '@coreui/react/src/index'
6+
import { CContainer } from '@coreui/react/src/'
77

88
const DefaultLayout: FC = ({ children, ...props }) => {
99
return (

0 commit comments

Comments
 (0)