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

Commit

Permalink
Merge ca69103 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 + ca69103 commit 318d251
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helpscout/hsds-react",
"version": "2.28.1",
"version": "2.28.2-0",
"private": false,
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
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
2 changes: 1 addition & 1 deletion src/utilities/pkg.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default {
version: '2.28.1',
version: '2.28.2-0',
}
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 318d251

Please sign in to comment.