mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
renaming app from HelloApp to AscribeApp
This commit is contained in:
parent
7a1bd8cd82
commit
0d0069a2a6
@ -3,20 +3,20 @@
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
|
||||
import HelloApp from './components/hello_app';
|
||||
import AscribeApp from './components/ascribe_app';
|
||||
import ArtworkList from './components/artwork_list';
|
||||
|
||||
var Route = Router.Route;
|
||||
|
||||
var routes = (
|
||||
<Route handler={HelloApp}>
|
||||
<Route handler={AscribeApp}>
|
||||
<Route path="artworks" handler={ArtworkList} />
|
||||
</Route>
|
||||
);
|
||||
|
||||
Router.run(routes, Router.HashLocation, (HelloApp) => {
|
||||
Router.run(routes, Router.HashLocation, (AscribeApp) => {
|
||||
React.render(
|
||||
<HelloApp />,
|
||||
<AscribeApp />,
|
||||
document.getElementById('main')
|
||||
);
|
||||
});
|
||||
|
@ -3,7 +3,7 @@ import Router from 'react-router';
|
||||
|
||||
var RouteHandler = Router.RouteHandler;
|
||||
|
||||
class HelloApp extends React.Component {
|
||||
class AscribeApp extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<div>
|
||||
@ -14,4 +14,4 @@ class HelloApp extends React.Component {
|
||||
}
|
||||
};
|
||||
|
||||
export default HelloApp;
|
||||
export default AscribeApp;
|
Loading…
Reference in New Issue
Block a user