mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +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 React from 'react';
|
||||||
import Router from 'react-router';
|
import Router from 'react-router';
|
||||||
|
|
||||||
import HelloApp from './components/hello_app';
|
import AscribeApp from './components/ascribe_app';
|
||||||
import ArtworkList from './components/artwork_list';
|
import ArtworkList from './components/artwork_list';
|
||||||
|
|
||||||
var Route = Router.Route;
|
var Route = Router.Route;
|
||||||
|
|
||||||
var routes = (
|
var routes = (
|
||||||
<Route handler={HelloApp}>
|
<Route handler={AscribeApp}>
|
||||||
<Route path="artworks" handler={ArtworkList} />
|
<Route path="artworks" handler={ArtworkList} />
|
||||||
</Route>
|
</Route>
|
||||||
);
|
);
|
||||||
|
|
||||||
Router.run(routes, Router.HashLocation, (HelloApp) => {
|
Router.run(routes, Router.HashLocation, (AscribeApp) => {
|
||||||
React.render(
|
React.render(
|
||||||
<HelloApp />,
|
<AscribeApp />,
|
||||||
document.getElementById('main')
|
document.getElementById('main')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ import Router from 'react-router';
|
|||||||
|
|
||||||
var RouteHandler = Router.RouteHandler;
|
var RouteHandler = Router.RouteHandler;
|
||||||
|
|
||||||
class HelloApp extends React.Component {
|
class AscribeApp extends React.Component {
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@ -14,4 +14,4 @@ class HelloApp extends React.Component {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default HelloApp;
|
export default AscribeApp;
|
Loading…
Reference in New Issue
Block a user