diff --git a/fableous-fe/src/App.tsx b/fableous-fe/src/App.tsx index 1ced34f2..c7e447ae 100644 --- a/fableous-fe/src/App.tsx +++ b/fableous-fe/src/App.tsx @@ -139,7 +139,10 @@ export default function App() { - + diff --git a/fableous-fe/src/components/Navbar.tsx b/fableous-fe/src/components/Navbar.tsx index e73a2c61..fe95483b 100644 --- a/fableous-fe/src/components/Navbar.tsx +++ b/fableous-fe/src/components/Navbar.tsx @@ -1,10 +1,11 @@ -import { makeStyles } from "@material-ui/core"; +import { Icon, makeStyles } from "@material-ui/core"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typography"; import Button from "@material-ui/core/Button"; import { Link, useHistory } from "react-router-dom"; import { useContext } from "react"; + import { AuthContext } from "./AuthProvider"; const useStyles = makeStyles(() => ({ @@ -36,14 +37,17 @@ export default function Navbar() { + + + ))} + + + +
+
+ +
+ +
+ {story?.data?.title} - {story.data.title} -
+ />
- - -
- )} + + + + + + , + { + icon: music_note, + label: "Play Audio", + onClick: playAudio, + disabled: audioPaths.length === 0, + } as ChipProps, + { + icon: skip_previous, + label: "Previous Page", + onClick: () => page > 1 && setPage(page - 1), + disabled: page === 1, + } as ChipProps, + { + icon: skip_next, + label: "Next Page", + onClick: () => + page < (story?.data?.pages || 1) && setPage(page + 1), + disabled: page === story?.data?.pages, + } as ChipProps, + ]} + /> + - )} + ); }