Remove cases and parties import
/* @flow */
/**
 * React Starter Kit (https://www.reactstarterkit.com/)
 *
 * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */

/* eslint-disable global-require */

// The top-level (parent) route
export default {

  path: '/',

  // Keep in mind, routes are evaluated in order
  children: [
    require('./home').default,
    require('./privacy').default,
    require('./about-us').default,
    require('./contact-us').default,

    require('./search').default,

    require('./case').default,
    require('./party').default,

    require('./notFound').default,
  ],

  async action({ next }: any) {
    // Execute each child route until one of them return the result
    const route = await next();

    // Provide default values for title, description etc.
    route.title = `${route.title || 'Untitled Page'} - LevelPlayingField`;
    route.description = route.description || '';

    return route;
  },

};

/* @flow */
/**
 * React Starter Kit (https://www.reactstarterkit.com/)
 *
 * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */

/* eslint-disable global-require */

// The top-level (parent) route
export default {

  path: '/',

  // Keep in mind, routes are evaluated in order
  children: [
    require('./home').default,
    require('./privacy').default,
    require('./about-us').default,
    require('./contact-us').default,

    require('./search').default,

    require('./cases').default,
    require('./parties').default,

    require('./case').default,
    require('./party').default,

    require('./notFound').default,
  ],

  async action({ next }: any) {
    // Execute each child route until one of them return the result
    const route = await next();

    // Provide default values for title, description etc.
    route.title = `${route.title || 'Untitled Page'} - LevelPlayingField`;
    route.description = route.description || '';

    return route;
  },

};
