From 2d399de16dc808546bfe430f96017b9f4f0dd277 Mon Sep 17 00:00:00 2001
From: taha12322 <66300435+taha12322@users.noreply.github.com>
Date: Tue, 17 Aug 2021 10:16:36 +0430
Subject: [PATCH] styled
---
src/components/Setting/FontSize/fontsize.js | 86 ++++++++++---------
src/components/Setting/FontStyle/Fontstyle.js | 2 +-
.../Setting/LineHeight/lineheight.js | 44 ++++++----
src/components/Setting/setting.js | 38 +++++---
src/components/footer/Wrapper.tsx | 10 +--
src/components/footer/progressBar.js | 2 +-
src/components/image/Document.svg | 8 ++
src/components/image/line.svg | 21 +++++
src/components/style/fontStyle.scss | 36 +++++++-
src/components/style/fontsize.scss | 6 +-
src/components/style/lineheight.scss | 24 ++++--
src/containers/Footer.tsx | 23 ++++-
src/containers/Header.tsx | 10 +--
src/containers/Reader.tsx | 6 +-
src/index.tsx | 1 +
15 files changed, 215 insertions(+), 102 deletions(-)
create mode 100644 src/components/image/Document.svg
create mode 100644 src/components/image/line.svg
diff --git a/src/components/Setting/FontSize/fontsize.js b/src/components/Setting/FontSize/fontsize.js
index d6207d1..0eac8b9 100644
--- a/src/components/Setting/FontSize/fontsize.js
+++ b/src/components/Setting/FontSize/fontsize.js
@@ -1,47 +1,53 @@
-import React from 'react';
-import '../../../components/style/fontsize.scss';
+import React, { useState } from "react";
+import "../../../components/style/fontsize.scss";
function ButtonIncrement(props) {
- return (
-
+ return (
+
+
-
- )
- }
-
- function ButtonDecrement(props) {
-
- return (
-
- -
-
- )
- }
-
- function Display(props) {
- return (
-
- )
- }
+
+ );
+}
-const Fontsize = (props) => {
+function ButtonDecrement(props) {
+ return (
+
+ -
+
+ );
+}
- const {countersize, setCounter} = props;
- const incrementCounter = () => setCounter(countersize + 1);
- let decrementCounter = () => setCounter(countersize - 1);
-
- if(countersize <= 1) {
- decrementCounter = () => setCounter(1);
- }
- return (
-
-
-
- )
+function Display(props) {
+ return ;
}
-export default Fontsize
+const Fontsize = (props) => {
+ const [countersize, setCounter ] = useState(1)
+ const incrementCounter = () => setCounter(countersize + 1);
+ let decrementCounter = () => setCounter(countersize - 1);
+
+ if (countersize <= 1) {
+ decrementCounter = () => setCounter(1);
+ }
+ return (
+
+
+
+ );
+};
+
+export default Fontsize;
diff --git a/src/components/Setting/FontStyle/Fontstyle.js b/src/components/Setting/FontStyle/Fontstyle.js
index 3d607b4..b04fdce 100644
--- a/src/components/Setting/FontStyle/Fontstyle.js
+++ b/src/components/Setting/FontStyle/Fontstyle.js
@@ -14,7 +14,7 @@ const Fontstyle = (props) => {
-