Skip to content

Commit

Permalink
Adding Icons and their stories (#235)
Browse files Browse the repository at this point in the history
* Revert "adding a way to build svg sprite (#226)"

This reverts commit 64583c9.

* Adding Icons and their stories
  • Loading branch information
julien51 committed Sep 10, 2018
1 parent 1902645 commit 7bbf187
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 1 deletion.
33 changes: 33 additions & 0 deletions unlock-app/src/components/interface/icons/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import About from './About'
import Code from './Code'
import Copy from './Copy'
import Download from './Download'
import Edit from './Edit'
import Eth from './Eth'
import Etherscan from './Etherscan'
import EthSub from './EthSub'
import Export from './Export'
import Github from './Github'
import Infinity from './Infinity'
import Jobs from './Jobs'
import Unlock from './Unlock'
import Upload from './Upload'
import Withdraw from './Withdraw'

export default {
About,
Code,
Copy,
Download,
Edit,
Eth,
Etherscan,
EthSub,
Export,
Github,
Infinity,
Jobs,
Unlock,
Upload,
Withdraw,
}
2 changes: 1 addition & 1 deletion unlock-app/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const ETHEREUM_NETWORKS_NAMES = {
2: ['Morden', 'staging'],
3: ['Ropsten', 'staging'],
4: ['Rinkeby', 'staging'],
}
}
80 changes: 80 additions & 0 deletions unlock-app/src/stories/interface/Icons.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import Icons from '../../components/interface/icons'

storiesOf('Icons')
.add('with the About', () => {
return (
<Icons.About />
)
})
.add('with the Code', () => {
return (
<Icons.Code />
)
})
.add('with the Copy', () => {
return (
<Icons.Copy />
)
})
.add('with the Download', () => {
return (
<Icons.Download />
)
})
.add('with the Edit', () => {
return (
<Icons.Edit />
)
})
.add('with the Eth', () => {
return (
<Icons.Eth />
)
})
.add('with the Etherscan', () => {
return (
<Icons.Etherscan />
)
})
.add('with the EthSub', () => {
return (
<Icons.EthSub />
)
})
.add('with the Export', () => {
return (
<Icons.Export />
)
})
.add('with the Github', () => {
return (
<Icons.Github />
)
})
.add('with the Infinity', () => {
return (
<Icons.Infinity />
)
})
.add('with the Jobs', () => {
return (
<Icons.Jobs />
)
})
.add('with the Unlock', () => {
return (
<Icons.Unlock />
)
})
.add('with the Upload', () => {
return (
<Icons.Upload />
)
})
.add('with the Withdraw', () => {
return (
<Icons.Withdraw />
)
})

0 comments on commit 7bbf187

Please sign in to comment.