Skip to content

Commit

Permalink
added changelog link, removed useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Oct 27, 2022
1 parent ce025c5 commit ba4ff1b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 0 additions & 2 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageJSON = require("./package.json");
module.exports = {
packagerConfig: {
name: "Manga Reader",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LoadingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div id="loadingScreen" style={{ display: isLoadingManga ? "grid" : "none" }}>
{/* <div className="name">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ReaderSideListItem.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
12 changes: 10 additions & 2 deletions src/Components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -157,7 +156,7 @@ const Settings = (): ReactElement => {
<div className="current">
<button
// onFocus={(e) => e.currentTarget.blur()}
onClick={(e) => {
onClick={() => {
const opt = window.electron.dialog.showSaveDialogSync(
window.electron.getCurrentWindow(),
{
Expand Down Expand Up @@ -378,6 +377,15 @@ const Settings = (): ReactElement => {
>
Open Logs
</button>
<button
onClick={() =>
window.electron.shell.openExternal(
"https://github.com/mienaiyami/react-ts-offline-manga-reader/releases"
)
}
>
Changelogs
</button>
</div>
</div>
</div>
Expand Down

0 comments on commit ba4ff1b

Please sign in to comment.