Skip to content

Commit

Permalink
documentation: update cms page import documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann-Vie committed Jun 7, 2019
1 parent dc3d49d commit f1ba068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/configuration/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Example:

```typescript
//...
import PrismicCmsPage from 'src/modules/dnd-prismic-cms/components/CmsPage/View'
const PrismicCmsPage = () => import(/* webpackChunkName: "prismic-cms" */ 'src/modules/dnd-prismic-cms/components/CmsPage/View')
//...
{ name: 'page-not-found', path: '/page-not-found', component: PageNotFound },
{ name: 'cms-page-sync', path: '/cms-page-sync', component: CmsData, props: {identifier: 'about-us', type: 'Page', sync: true} },
Expand Down
4 changes: 2 additions & 2 deletions doc/features/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import PrismicCmsPage from 'src/modules/dnd-prismic-cms/components/CmsPage/View'
In the file `src/themes/default/router/index.js`:

```typescript
import PrismicCmsPage from 'src/modules/dnd-prismic-cms/components/CmsPage/View'
const PrismicCmsPage = () => import(/* webpackChunkName: "prismic-cms" */ 'src/modules/dnd-prismic-cms/components/CmsPage/View')

//...
{ name: 'demo-prismic-promo', path: '/summer-promotion', component: PrismicCmsPage, props: {slug: 'summer-promotion'} }
Expand All @@ -56,7 +56,7 @@ Example:

```typescript
//...
import PrismicCmsPage from 'src/modules/dnd-prismic-cms/components/CmsPage/View'
const PrismicCmsPage = () => import(/* webpackChunkName: "prismic-cms" */ 'src/modules/dnd-prismic-cms/components/CmsPage/View')
//...
{ name: 'page-not-found', path: '/page-not-found', component: PageNotFound },
{ name: 'cms-page-sync', path: '/cms-page-sync', component: CmsData, props: {identifier: 'about-us', type: 'Page', sync: true} },
Expand Down

0 comments on commit f1ba068

Please sign in to comment.