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