Skip to content

Commit

Permalink
get the package name from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Jul 12, 2018
1 parent 1d0fd89 commit c9fb87c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/octicons_react/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

import Octicon, {iconsByName} from '../'
import {Block, Text} from 'primer-react'
import pkg from '../package.json'
import Octicon, {iconsByName} from '../'

export default function App() {
const sizes = ['small', 'medium', 'large']
Expand Down Expand Up @@ -41,7 +41,7 @@ export default function App() {
<td>
<pre>
{`
import Octicon, {${Icon.name}} from '@github/octicons-react'
import Octicon, {${Icon.name}} from '${pkg.name}'
export default () => <Octicon icon={${Icon.name}} />
`.trim()}
</pre>
Expand Down

0 comments on commit c9fb87c

Please sign in to comment.