Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix link to the logo, add some text in the examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
cellog committed May 3, 2017
1 parent 412aa86 commit dcf266f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/md/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src='/ion-router.png' alt='Ion Router Logo' width='300px'>
<img src='ion-router.png' alt='Ion Router Logo' width='300px'>

# ion-router
###### Connecting your url and redux state
Expand Down
17 changes: 16 additions & 1 deletion docs/src/components/Examples.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
import React from 'react'
import { connect } from 'react-redux'

import ExampleToggle from '../toggles/ExampleToggle'
import { getConnectedLink } from 'ion-router/Link'
import thing from './Example'

const Link = getConnectedLink(connect, 'mainStore')
const Example = connect(state => ({
example: state.examples.example
}), undefined, undefined, { storeKey: 'mainStore' })(thing)

export default function Examples() {
return (
<div>
<ExampleToggle component={Example} />
<ExampleToggle component={Example} else={() => (
<div>
<h1>Examples of ion-router&apos;s power</h1>
<p>
There are many ways ion-router can be used, and this
list will grow as new ones are added.
</p>
<ul>
<li><Link route="examples" example="basic">Basic Example</Link></li>
</ul>
</div>
)}
/>
</div>
)
}

0 comments on commit dcf266f

Please sign in to comment.