-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ItemViewAppBar to react-styleguidist folder structure w/ docs
- Loading branch information
Justin Campbell
committed
Sep 20, 2020
1 parent
c08073d
commit ba98c45
Showing
4 changed files
with
36 additions
and
2 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
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,17 @@ | ||
The ItemViewAppBar is the primary toolbar for the [ItemView](/#/Components/ItemView). It displays the item title and action for closing the sidebar. | ||
|
||
```jsx | ||
import React, { useState } from "react"; | ||
import ItemViewAppBar from "./ItemViewAppBar"; | ||
import webqueue2Theme from "../../theme.js"; | ||
|
||
const theme = webqueue2Theme(false); | ||
|
||
const [sidebarOpen, setSidebarOpen] = useState(false); | ||
|
||
<ItemViewAppBar title="ce 100" setSidebarOpen={setSidebarOpen} theme={theme} /> | ||
``` | ||
|
||
```jsx static | ||
<ItemViewAppBar title={"ce 100"} setSidebarOpen={someFunc} theme={theme} /> | ||
``` |
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,3 @@ | ||
import ItemViewAppBar from "./ItemViewAppBar"; | ||
|
||
export default ItemViewAppBar; |