Fixing docz

This commit is contained in:
Gustavo Lelis 2020-03-27 13:18:01 -03:00 committed by James A. Petts
parent 69ff46fa5c
commit 01c5456ccf
6 changed files with 40 additions and 34 deletions

View File

@ -13,7 +13,7 @@ export {
Icon,
IconButton,
Input,
NavBag,
NavBar,
Select,
Svg,
ThemeWrapper,

View File

@ -1,26 +0,0 @@
---
name: NavBag
menu: Components
route: components/label
---
import { Playground, Props } from 'docz';
import NavBag from './';
# NavBag
## Import
```javascript
import { NavBag } from '@ohif/ui';
```
## Basic usage
<Playground>
<NavBag />
</Playground>
## Properties
<Props of={NavBag} />

View File

@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const NavBag = ({ className, children }) => {
const NavBar = ({ className, children }) => {
return (
<div
className={classnames(
@ -15,9 +15,9 @@ const NavBag = ({ className, children }) => {
);
};
NavBag.propTypes = {
NavBar.propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};
export default NavBag;
export default NavBar;

View File

@ -0,0 +1,32 @@
---
name: NavBar
menu: Components
route: components/navBar
---
import { Playground, Props } from 'docz';
import Button from './../Button';
import Typography from './../Typography';
import NavBar from './';
# NavBar
## Import
```javascript
import { NavBar } from '@ohif/ui';
```
## Basic usage
<Playground>
<NavBar className="justify-center">
<Typography variant="h3" className="m-2">
Header content
</Typography>
</NavBar>
</Playground>
## Properties
<Props of={NavBar} />

View File

@ -1,2 +1,2 @@
import NavBag from './NavBag';
export default NavBag;
import NavBar from './NavBar';
export default NavBar;

View File

@ -4,7 +4,7 @@ import DateRange from './DateRange';
import Icon from './Icon';
import IconButton from './IconButton';
import Input from './Input';
import NavBag from './NavBag';
import NavBar from './NavBar';
import Select from './Select';
import Svg from './Svg';
import ThemeWrapper from './ThemeWrapper/';
@ -17,7 +17,7 @@ export {
Icon,
IconButton,
Input,
NavBag,
NavBar,
Select,
Svg,
ThemeWrapper,