Pages

Switches the app's main view based on the value of the page in AppModelBase. Props are spread to component that is displayed.

Import
import Pages from 'react-storefront/Pages'

Props

NameTypeDefaultDescription
componentsunion : object |
func
{}

An object which serves as a map of page name to component to display. When the value of page in AppModelBase matches a key in this object, the corresponding component will be displayed.

loadMasksobject{}

An object which serves as a map of page name to mask to display when the page is loading. When the value of page in AppModelBase matches a key in this object, the corresponding mask will be displayed.

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • root
  • error