Skip to content

Commit

Permalink
Merge pull request #67 from Yoctol/docs/fix-lab-memu
Browse files Browse the repository at this point in the history
docs: fix lab/menu component name and update readme
  • Loading branch information
tw0517tw authored Feb 20, 2019
2 parents 809b12d + 55b1cdc commit 53cdd50
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ Run below commands:
```bash
cd tailor-ui
yarn
yarn bootstrap
yanr start
```

Watch files changed and check type:

```bash
yarn watch
```
42 changes: 21 additions & 21 deletions docs/lab/Menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import { Menu } from '@tailor-ui/lab';
<Playground>
<div style={{ height: 600 }}>
<Menu defaultActiveSubId="kurator">
<Menu.MenuDivider />
<Menu.Divider />
<Menu.SubMenu id="kurator" icon="kurator" title="Kurator">
<Menu.MenuItem id="actions">Actions</Menu.MenuItem>
<Menu.MenuItem id="menu">Menu</Menu.MenuItem>
<Menu.Item id="actions">Actions</Menu.Item>
<Menu.Item id="menu">Menu</Menu.Item>
</Menu.SubMenu>
<Menu.SubMenu
id="understood"
Expand All @@ -38,48 +38,48 @@ import { Menu } from '@tailor-ui/lab';
badge="danger"
header={<div style={{ padding: '4px 16px' }}>Something here</div>}
>
<Menu.MenuItem id="intents">Intents</Menu.MenuItem>
<Menu.MenuItem id="entities">Entities</Menu.MenuItem>
<Menu.MenuItem id="understood_settings">Settings</Menu.MenuItem>
<Menu.Item id="intents">Intents</Menu.Item>
<Menu.Item id="entities">Entities</Menu.Item>
<Menu.Item id="understood_settings">Settings</Menu.Item>
</Menu.SubMenu>
<Menu.SubMenu id="settings" icon="settings" title="Settings">
<Menu.MenuItem id="settings">Settings</Menu.MenuItem>
<Menu.Item id="settings">Settings</Menu.Item>
</Menu.SubMenu>
<Menu.MenuDivider />
<Menu.Divider />
<Menu.SubMenu id="touch" icon="touch" title="Touch">
<Menu.MenuItem id="broadcasts">Broadcasts</Menu.MenuItem>
<Menu.MenuItem id="Replies">Replies</Menu.MenuItem>
<Menu.Item id="broadcasts">Broadcasts</Menu.Item>
<Menu.Item id="Replies">Replies</Menu.Item>
</Menu.SubMenu>
<Menu.MenuDivider />
<Menu.Divider />
<div style={{ flex: 'auto' }} />
<Menu.SubMenu
id="tutorial"
icon={IoMdBook}
title="Tutorial"
placement="bottom"
>
<Menu.MenuItem id="broadcasts" icon={MdOpenInNew}>
<Menu.Item id="broadcasts" icon={MdOpenInNew}>
Tutorial
</Menu.MenuItem>
<Menu.MenuItem id="issue" icon={MdOpenInNew}>
</Menu.Item>
<Menu.Item id="issue" icon={MdOpenInNew}>
Issue Report
</Menu.MenuItem>
<Menu.MenuItem id="group" icon={MdOpenInNew}>
</Menu.Item>
<Menu.Item id="group" icon={MdOpenInNew}>
Group
</Menu.MenuItem>
</Menu.Item>
</Menu.SubMenu>
<Menu.SubMenu
id="accounts"
icon={MdAccountCircle}
title="Accounts"
placement="bottom"
>
<Menu.MenuItem id="account_settings" icon={MdOpenInNew}>
<Menu.Item id="account_settings" icon={MdOpenInNew}>
Account Settings
</Menu.MenuItem>
<Menu.MenuItem id="logout" icon={MdOpenInNew}>
</Menu.Item>
<Menu.Item id="logout" icon={MdOpenInNew}>
Logout
</Menu.MenuItem>
</Menu.Item>
</Menu.SubMenu>
</Menu>
</div>
Expand Down

0 comments on commit 53cdd50

Please sign in to comment.