Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / pages / MyAccount / AppShell / SubRouting.js
Size: Mime:
import * as React from 'react';
// import { oneRouter } from '@skava/router'
import { renderRoutes } from '@skava/router/dist/react-router-config';
import MultipleLists from '@skava/packages/features/Lists/MultipleLists';
import Shipping from '../sections/AddressSection';
import Privacy from '../sections/PrivacySection';
import Landing from '../sections/LandingSection';
import Payment from '../sections/PaymentSection';
import { OrderHistory } from '@skava/packages/pages/Orders/OrderHistorySection';
import { pathParams } from './ROUTE_PARAMS';
import { ErrorBoundary } from '@skava/react-error-boundary';
export const SUB_ROUTE_LIST = [
    {
        path: pathParams.myaccountLanding,
        component: Landing,
    },
    {
        path: pathParams.myaccountShippingMethods,
        component: Shipping,
    },
    {
        path: pathParams.myaccountPaymentMethods,
        component: Payment,
    },
    {
        path: pathParams.myaccountOrders,
        component: OrderHistory,
    },
    {
        path: pathParams.myaccountPrivacy,
        component: Privacy,
    },
    {
        path: pathParams.myaccountListsManagement,
        component: MultipleLists,
    },
].map(x => {
    return {
        ...x,
        key: x.path,
        exact: true,
    };
});
export class SubRouting extends React.PureComponent {
    render() {
        return React.createElement(ErrorBoundary, null, renderRoutes(SUB_ROUTE_LIST));
    }
}
//# sourceMappingURL=SubRouting.js.map