Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge 138ca75 into c83ba7c
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Quach committed Apr 16, 2019
2 parents c83ba7c + 138ca75 commit ae8486a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/HsApp/HsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Sidenav from './Sidenav'

export interface Props {
children?: any
withInnerWrapper?: boolean
withInnerWrapper: boolean
sidenavComponent?: any
contentComponent?: any
navComponent?: any
Expand Down
15 changes: 7 additions & 8 deletions src/components/HsApp/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ import {
} from './HsApp.css'
import Icon from '../Icon'
import Text from '../Text'
import { createSpec, faker } from '@helpscout/helix'

const ItemSpec = createSpec({
id: faker.random.uuid(),
label: faker.company.companyName(),
value: faker.company.companyName(),
})

export interface Props {}

class Nav extends React.PureComponent<Props> {
renderDropdowns() {
const items = [
{ value: 'one', label: 'One' },
{ value: 'two', label: 'Two' },
{ value: 'three', label: 'Three' },
{ value: 'four', label: 'Four' },
]
return ['Mailboxes', 'Docs', 'Reports', 'Manage'].map(d => (
<DropdownUI
key={d}
items={ItemSpec.generate(8)}
items={items}
trigger={
<DropdownTriggerUI>
<Text size="14">{d}</Text>{' '}
Expand Down
7 changes: 7 additions & 0 deletions stories/HsApp.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { HsApp } from '../src/index.js'

const stories = storiesOf('HsApp', module)

stories.add('Default', () => <HsApp />)

0 comments on commit ae8486a

Please sign in to comment.