1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
Brett Sun
1c1719807e Use previous method from white labels to get the current active route 2016-02-03 12:28:49 +01:00
Brett Sun
8527627db0 Hide the footer if a route has the hideFooter attribute 2016-02-01 14:49:48 +01:00
Brett Sun
50d50c66ee Change children prop from react-router to only be a Element type
Judging by
https://github.com/rackt/react-router/blob/master/docs/API.md#children-1
and a few inspections in the code, as well as tests, the `children`
prop injected into routes can only ever be a single React Element
object.

This allows us to easily get the active route of a child (if there is
an active route) by querying the `children`’s route prop.
2016-02-01 14:48:44 +01:00
Brett Sun
7e1cfbb490 Add AppBase HOC to improve DRYness of functionality reused across apps 2016-01-19 15:00:50 +01:00