Files
optolith-client/js/views/Route.js
T
Lukas Obermann e1927227bf Changed data objects to ES6 classes
Additionally changed folder structure to components and views
2016-11-14 00:18:09 +01:00

46 lines
1.1 KiB
JavaScript

import About from './about/About';
import Account from './account/Account';
import Attribute from './attributes/AttributesController';
import DisAdv from './disadv/DisAdv';
import Grouplist from './grouplist/Grouplist';
import Herolist from './herolist/Herolist';
import Home from './home/Home';
import Items from './items/Items';
import Master from './master/Master';
import Profile from './profile/Profile';
import React from 'react';
import RCP from './rcp/RCP';
import Skills from './skills/Skills';
export default props => {
const { id } = props;
switch (id) {
case 'home':
return <Home />;
case 'herolist':
return <Herolist />;
case 'grouplist':
return <Grouplist />;
case 'account':
return <Account />;
case 'about':
return <About />;
case 'rcp':
return <RCP />;
case 'profile':
return <Profile />;
case 'attributes':
return <Attribute />;
case 'disadv':
return <DisAdv />;
case 'skills':
return <Skills />;
case 'items':
return <Items />;
case 'master':
return <Master />;
default:
return null;
}
};