Skip to content

Instantly share code, notes, and snippets.

@ninjaPixel
Last active January 4, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjaPixel/ee4c64d5c07c07d812e61ad2e0a5702d to your computer and use it in GitHub Desktop.
Save ninjaPixel/ee4c64d5c07c07d812e61ad2e0a5702d to your computer and use it in GitHub Desktop.
import React from 'react';
import { Route } from 'react-router-dom';
import InitialSetup from '../../screens/InitialSetup/InitialSetup';
import Staff from '../../screens/Staff/Staff';
export const Generate = (props) => {
return [
<Route path="/admin/initial-setup" component={InitialSetup} {...props} key="s1" />,
<Route path="/admin/staff" component={Staff} {...props} key="s2" />,
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment