Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix(index): export tooltip, datepicker (#73)
Browse files Browse the repository at this point in the history
* fix(index): export tooltip, datepicker

* fix(export): update tests
  • Loading branch information
tw15egan authored Jun 30, 2017
1 parent c81b040 commit 400de05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
13 changes: 6 additions & 7 deletions components/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ const ToolbarItem = ({ children, type, placeHolderText }) => {
return toolbarItem;
};

const ToolbarTitle = ({ title }) => (
const ToolbarTitle = ({ title }) =>
<li className="bx--toolbar-menu__title">
{title}
</li>
);
</li>;

const ToolbarOption = ({ children }) => (
<li className="bx--toolbar-menu__option">{children}</li>
);
const ToolbarOption = ({ children }) =>
<li className="bx--toolbar-menu__option">{children}</li>;

const ToolbarDivider = () => <hr className="bx--toolbar-menu__divider" />;

Expand All @@ -56,4 +54,5 @@ ToolbarItem.propTypes = toolbarItemPropTypes;
ToolbarTitle.propTypes = toolbarTitlePropTypes;
ToolbarOption.propTypes = toolbarOptionPropTypes;

export { Toolbar, ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider };
export default Toolbar;
export { ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider };
3 changes: 1 addition & 2 deletions components/__tests__/Toolbar-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import {
Toolbar,
import Toolbar, {
ToolbarItem,
ToolbarTitle,
ToolbarOption,
Expand Down
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export CodeSnippet from './components/CodeSnippet';
export ContentSwitcher from './components/ContentSwitcher';
export CopyButton from './components/CopyButton';
export DangerButton from './components/DangerButton';
export DatePicker from './components/DatePicker';
export DatePickerInput from './components/DatePickerInput';
export DetailPageHeader from './components/DetailPageHeader';
export Dropdown from './components/Dropdown';
export DropdownItem from './components/DropdownItem';
Expand Down Expand Up @@ -69,6 +71,13 @@ export TextInput from './components/TextInput';
export TimePicker from './components/TimePicker';
export TimePickerSelect from './components/TimePickerSelect';
export Toggle from './components/Toggle';
export Toolbar, {
ToolbarItem,
ToolbarTitle,
ToolbarOption,
ToolbarDivider,
} from './components/Toolbar';
export ToolbarSearch from './ToolbarSearch';
export Tooltip from './components/Tooltip';
export TooltipSimple from './components/TooltipSimple';
export UnorderedList from './components/UnorderedList';

0 comments on commit 400de05

Please sign in to comment.