From 741b12261b64a3267e588644e4a91ceefea99808 Mon Sep 17 00:00:00 2001 From: taha12322 <66300435+taha12322@users.noreply.github.com> Date: Sun, 22 Aug 2021 16:21:21 +0430 Subject: [PATCH] 3 botton in footer finished --- src/components/style/footerStyle.scss | 4 ++ src/containers/Footer.tsx | 65 ++++++++++++++++++++++++--- src/containers/Reader.tsx | 41 ++++++++++++++++- src/containers/menu/Option.tsx | 4 +- 4 files changed, 104 insertions(+), 10 deletions(-) create mode 100644 src/components/style/footerStyle.scss diff --git a/src/components/style/footerStyle.scss b/src/components/style/footerStyle.scss new file mode 100644 index 0000000..a2142ee --- /dev/null +++ b/src/components/style/footerStyle.scss @@ -0,0 +1,4 @@ +.icons-disable { + opacity: 0.3; + cursor: auto; +} diff --git a/src/containers/Footer.tsx b/src/containers/Footer.tsx index 0523ce4..6914e77 100644 --- a/src/containers/Footer.tsx +++ b/src/containers/Footer.tsx @@ -5,9 +5,15 @@ import Item from "components/footer/Item"; // import MoveBtn from "components/footer/MoveBtn"; import styled from "styled-components"; import ProgressBar from "../components/footer/progressBar"; -import onePage from "../components/image/Document.svg"; -import twoPage from "../components/image/Pages.svg"; -import { BookCloseIcon, BookOpenIcon, ScrollVerticalIcon } from "lib/svg"; +import { + BookCloseIcon, + BookOpenIcon, + ScrollVerticalIcon, + ScrollHorizontalIcon, +} from "lib/svg"; + +// import style +import "../components/style/footerStyle.scss"; const Footer = ({ // title, @@ -15,12 +21,19 @@ const Footer = ({ totalPage, // onPageMove, CountPage, + onClickDirection, + onClickViewType, + onBookOptionChange, + bookOption, }: Props) => { const [Icon, setIcon] = useState(false); const changeIcone = () => { setIcon(!Icon); }; + + const [toggleIcon, setToggleIcon] = useState(true); + return ( <> @@ -39,10 +52,44 @@ const Footer = ({