-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(docs): update formatting of Menu and Table examples (#1938)
- Loading branch information
1 parent
0aecfea
commit 4a06b85
Showing
56 changed files
with
1,933 additions
and
2,042 deletions.
There are no files selected for viewing
22 changes: 10 additions & 12 deletions
22
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import React from 'react' | ||
import { Button, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleButtons = () => { | ||
return ( | ||
<Menu> | ||
<Menu.Item> | ||
<Button primary>Sign up</Button> | ||
</Menu.Item> | ||
const MenuExampleButtons = () => ( | ||
<Menu> | ||
<Menu.Item> | ||
<Button primary>Sign up</Button> | ||
</Menu.Item> | ||
|
||
<Menu.Item> | ||
<Button>Log-in</Button> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
<Menu.Item> | ||
<Button>Log-in</Button> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleButtons |
24 changes: 11 additions & 13 deletions
24
docs/app/Examples/collections/Menu/Content/MenuExampleDropdownItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import React from 'react' | ||
import { Dropdown, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleDropdownItem = () => { | ||
return ( | ||
<Menu vertical> | ||
<Dropdown item text='Categories'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Electronics</Dropdown.Item> | ||
<Dropdown.Item>Automotive</Dropdown.Item> | ||
<Dropdown.Item>Home</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</Menu> | ||
) | ||
} | ||
const MenuExampleDropdownItem = () => ( | ||
<Menu vertical> | ||
<Dropdown item text='Categories'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Electronics</Dropdown.Item> | ||
<Dropdown.Item>Automotive</Dropdown.Item> | ||
<Dropdown.Item>Home</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleDropdownItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
docs/app/Examples/collections/Menu/Content/MenuExampleInputs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import React from 'react' | ||
import { Input, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleInputs = () => { | ||
return ( | ||
<Menu> | ||
<Menu.Item> | ||
<Input className='icon' icon='search' placeholder='Search...' /> | ||
</Menu.Item> | ||
const MenuExampleInputs = () => ( | ||
<Menu> | ||
<Menu.Item> | ||
<Input className='icon' icon='search' placeholder='Search...' /> | ||
</Menu.Item> | ||
|
||
<Menu.Item position='right'> | ||
<Input action={{ type: 'submit', content: 'Go' }} placeholder='Navigate to...' /> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
<Menu.Item position='right'> | ||
<Input action={{ type: 'submit', content: 'Go' }} placeholder='Navigate to...' /> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleInputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleActive.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleActive = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item active> | ||
const MenuExampleActive = () => ( | ||
<Menu compact> | ||
<Menu.Item active> | ||
Link | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleActive |
14 changes: 6 additions & 8 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleDisabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleDisabled = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item disabled> | ||
const MenuExampleDisabled = () => ( | ||
<Menu compact> | ||
<Menu.Item disabled> | ||
Link | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleDisabled |
14 changes: 6 additions & 8 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleHover.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleHover = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item as='a'>A link</Menu.Item> | ||
<Menu.Item link>div Link</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
const MenuExampleHover = () => ( | ||
<Menu compact> | ||
<Menu.Item as='a'>A link</Menu.Item> | ||
<Menu.Item link>div Link</Menu.Item> | ||
</Menu> | ||
) | ||
|
||
export default MenuExampleHover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.