chore(docz): use category() instead of group

This commit is contained in:
Pedro Nauck
2018-04-19 21:36:06 -03:00
parent 00816bf401
commit df006bca51
9 changed files with 58 additions and 135 deletions

View File

@@ -2,10 +2,9 @@ import React, { Fragment } from 'react'
import { doc } from 'docz'
import { Alert } from './Alert'
import { components } from './'
doc('Alert')
.group(components)
.category('Components')
.description('This component is used to show alerts')
.section('Basic usage', () => <Alert>Some message</Alert>)
.section('Using different kinds', () => (

View File

@@ -2,8 +2,7 @@ import React from 'react'
import { doc } from 'docz'
import { Button } from './Button'
import { components } from './'
doc('Button')
.group(components)
.category('Components')
.section(() => <Button>Click me</Button>)

View File

@@ -1,6 +1,2 @@
import { group } from 'docz'
export { Alert } from './Alert'
export { Button } from './Button'
export const components = group('Components')