From ba4ff1bbf2f867b2c4c90371c6ab8f86fd5a79c1 Mon Sep 17 00:00:00 2001 From: yami Date: Thu, 27 Oct 2022 21:30:47 +0530 Subject: [PATCH] added changelog link, removed useless variable --- forge.config.js | 2 -- package.json | 2 +- src/Components/LoadingScreen.tsx | 2 +- src/Components/ReaderSideListItem.tsx | 2 +- src/Components/Settings.tsx | 12 ++++++++++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/forge.config.js b/forge.config.js index f127ccc..2d48239 100644 --- a/forge.config.js +++ b/forge.config.js @@ -1,5 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const packageJSON = require("./package.json"); module.exports = { packagerConfig: { name: "Manga Reader", diff --git a/package.json b/package.json index 3571152..ce337fb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mangareader", "productName": "Manga Reader", - "version": "2.3.0", + "version": "2.3.1", "description": "App to read manga on desktop", "main": "./.webpack/main/index.js", "author": { diff --git a/src/Components/LoadingScreen.tsx b/src/Components/LoadingScreen.tsx index 9869ffe..9da0cdb 100644 --- a/src/Components/LoadingScreen.tsx +++ b/src/Components/LoadingScreen.tsx @@ -2,7 +2,7 @@ import { ReactElement, useContext } from "react"; import { AppContext } from "../App"; const LoadingScreen = (): ReactElement => { - const { isLoadingManga, loadingMangaPercent, mangaInReader } = useContext(AppContext); + const { isLoadingManga, loadingMangaPercent } = useContext(AppContext); return (
{/*
diff --git a/src/Components/ReaderSideListItem.tsx b/src/Components/ReaderSideListItem.tsx index 2fc21a7..434be61 100644 --- a/src/Components/ReaderSideListItem.tsx +++ b/src/Components/ReaderSideListItem.tsx @@ -1,5 +1,5 @@ // ! check if it really need forward ref -import { forwardRef, useContext, useEffect, useRef, useState } from "react"; +import { forwardRef, useContext, useEffect } from "react"; import { AppContext } from "../App"; import { MainContext } from "./Main"; diff --git a/src/Components/Settings.tsx b/src/Components/Settings.tsx index 1d2b990..8e739bc 100644 --- a/src/Components/Settings.tsx +++ b/src/Components/Settings.tsx @@ -2,7 +2,6 @@ import { AppContext, themesMain } from "../App"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { ReactElement, useContext, useEffect, useRef, useState } from "react"; -import useTheme from "../hooks/useTheme"; import { faTimes } from "@fortawesome/free-solid-svg-icons"; const Settings = (): ReactElement => { @@ -157,7 +156,7 @@ const Settings = (): ReactElement => {
+