Sha256: 5437bdf3c21daca79dd3df022669ecdc4f0a9aef89c31fe35222b678cb24fa2e

Contents?: true

Size: 776 Bytes

Versions: 22

Compression:

Stored size: 776 Bytes

Contents

import React from 'react';
import { Route, Switch } from 'react-router-dom';

import NewTemplateSync from './components/NewTemplateSync';
import TemplateSyncResult from './components/TemplateSyncResult';
import PageNotFound from './components/PageNotFound';

const links = [
  {
    title: 'New Template Sync',
    path: 'template_syncs',
    Component: NewTemplateSync,
  },
  {
    title: 'Template Sync Result',
    path: 'template_syncs/result',
    Component: TemplateSyncResult,
  },
];

export default data => (
  <Switch>
    {links.map(({ path, Component }) => (
      <Route
        exact
        key={path}
        path={`/${path}`}
        render={props => <Component {...props} {...data} />}
      />
    ))}
    <Route component={PageNotFound} />
  </Switch>
);

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/Routes.js
foreman_templates-10.0.1 webpack/Routes.js
foreman_templates-10.0.0 webpack/Routes.js
foreman_templates-9.5.1 webpack/Routes.js
foreman_templates-9.5.0 webpack/Routes.js
foreman_templates-9.3.3 webpack/Routes.js
foreman_templates-9.3.2 webpack/Routes.js
foreman_templates-9.3.1 webpack/Routes.js
foreman_templates-9.4.0 webpack/Routes.js
foreman_templates-9.3.0 webpack/Routes.js
foreman_templates-9.2.0 webpack/Routes.js
foreman_templates-9.1.0 webpack/Routes.js
foreman_templates-9.0.2 webpack/Routes.js
foreman_templates-9.0.1 webpack/Routes.js
foreman_templates-9.0.0 webpack/Routes.js
foreman_templates-7.0.7 webpack/Routes.js
foreman_templates-8.0.0 webpack/Routes.js
foreman_templates-7.0.6 webpack/Routes.js
foreman_templates-7.0.5 webpack/Routes.js
foreman_templates-7.0.4 webpack/Routes.js