Skip to content

Commit

Permalink
Move ItemTableAppBar to react-styleguidist folder structure w/ docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Sep 17, 2020
1 parent 5498151 commit a8f1017
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from "react";
import { ThemeProvider } from "@material-ui/core/styles";
import webqueueTheme from "./theme";
import { Box, makeStyles } from "@material-ui/core";
import ItemTableAppBar from "./ItemTableAppBar";
import ItemTableAppBar from "./components/ItemTableAppBar/";
import ItemTable from "./components/ItemTable/";
import ItemViewAppBar from "./ItemViewAppBar";
import ItemView from "./ItemView";
Expand Down
File renamed without changes.
16 changes: 16 additions & 0 deletions src/components/ItemTableAppBar/ItemTableAppBar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
The ItemTableAppBar is the primary toolbar for the [ItemTable](/#/Components/ItemTable). It displays the application title and application wide actions.

```jsx
import React, { useState } from "react";
import webqueue2Theme from "../../theme.js";

const [darkMode, setDarkMode] = useState(false);

const theme = webqueue2Theme(darkMode);

<ItemTableAppBar title="webqueue2" darkMode={darkMode} setDarkMode={setDarkMode} theme={theme} />
```

```jsx static
<ItemTableAppBar title="webqueue2" darkMode={darkMode} setDarkMode={setDarkMode} theme={theme} />
```
3 changes: 3 additions & 0 deletions src/components/ItemTableAppBar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ItemTableAppBar from "./ItemTableAppBar";

export default ItemTableAppBar;

0 comments on commit a8f1017

Please sign in to comment.