-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Sidebar): fix a collision between
children
and shorthand props (#…
…4145) * fix(Sidebar): fix a collision between `children` and shorthand props * remove only * fix test
- Loading branch information
1 parent
cb4b05e
commit 89ba138
Showing
5 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
import { Menu, Sidebar } from 'semantic-ui-react' | ||
|
||
const SidebarAndMenu = () => ( | ||
<Sidebar | ||
as={Menu} | ||
animation='push' | ||
data-tid='menu' | ||
inverted | ||
items={[ | ||
{ key: 'home', content: 'Home', 'data-tid': 'menu-item' }, | ||
{ key: 'about', content: 'About' }, | ||
]} | ||
vertical | ||
visible | ||
/> | ||
) | ||
|
||
export default SidebarAndMenu |
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
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