forked from magento/pwa-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stubs for missing root components (#21)
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/theme-frontend-venia/theme/src/RootComponents/CMS/CMS.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { createElement, Component } from 'react'; | ||
|
||
export default class CMS extends Component { | ||
render() { | ||
return <div>CMS Page Stub</div>; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/theme-frontend-venia/theme/src/RootComponents/CMS/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @RootComponent | ||
* description = 'Basic CMS Page' | ||
* pageTypes = CMS_PAGE | ||
*/ | ||
|
||
export { default } from './CMS'; |
4 changes: 2 additions & 2 deletions
4
packages/theme-frontend-venia/theme/src/RootComponents/Category/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* @RootComponent | ||
* description = 'Basic Category Page Implementation' | ||
* pageTypes = catalog_category_view | ||
* description = 'Basic Category Page' | ||
* pageTypes = CATEGORY | ||
*/ | ||
export { default } from './category'; |
7 changes: 7 additions & 0 deletions
7
packages/theme-frontend-venia/theme/src/RootComponents/Product/Product.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { createElement, Component } from 'react'; | ||
|
||
export default class Product extends Component { | ||
render() { | ||
return <div>Product Page Stub</div>; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/theme-frontend-venia/theme/src/RootComponents/Product/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @RootComponent | ||
* description = 'Basic Product Page' | ||
* pageTypes = PRODUCT | ||
*/ | ||
|
||
export { default } from './Product'; |