mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
code formatting
This commit is contained in:
parent
25a715ddb3
commit
6ae7ff0d4b
@ -4,14 +4,14 @@ import Router from 'react-router';
|
|||||||
var RouteHandler = Router.RouteHandler;
|
var RouteHandler = Router.RouteHandler;
|
||||||
|
|
||||||
class AscribeApp extends React.Component {
|
class AscribeApp extends React.Component {
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>ascribe all the things!</h1>
|
<h1>ascribe all the things!</h1>
|
||||||
<RouteHandler />
|
<RouteHandler />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AscribeApp;
|
export default AscribeApp;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
class ArtworkList extends React.Component {
|
class ArtworkList extends React.Component {
|
||||||
render () {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ul>
|
<ul>
|
||||||
<li>This is an artwork</li>
|
<li>This is an artwork</li>
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ArtworkList;
|
export default ArtworkList;
|
||||||
|
@ -2,4 +2,4 @@ class ArtworkListStore {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.artworkList = [];
|
this.artworkList = [];
|
||||||
}
|
}
|
||||||
}
|
};
|
@ -6,7 +6,7 @@ import ArtworkList from './components/artwork_list';
|
|||||||
var Route = Router.Route;
|
var Route = Router.Route;
|
||||||
|
|
||||||
var routes = (
|
var routes = (
|
||||||
<Route handler={AscribeApp}>
|
<Route handler={AscribeApp}>
|
||||||
<Route path="artworks" handler={ArtworkList} />
|
<Route path="artworks" handler={ArtworkList} />
|
||||||
</Route>
|
</Route>
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user