Skip to content

Commit

Permalink
Fix react-toastify styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Oct 26, 2023
1 parent b357626 commit 46a30b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bloompub-viewer",
"version": "1.0.2",
"version": "1.0.3",
"author": "Bloom Devs",
"description": "Viewer for Bloom Digital books",
"license": "MIT",
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import React, { useEffect, useState } from "react";
import "./App.css";
// I couldn't get import 'react-toastify/dist/ReactToastify.css'; to work, so I copied it in.
import "./ReactToastify.min.css";
import { Viewer } from "./Viewer";
import { StartScreen } from "./StartScreen";
import { toast, ToastContainer } from "react-toastify";
import { injectStyle } from "react-toastify/dist/inject-style";
import { Octokit } from "@octokit/rest";
import compareVersions from "compare-versions";

let setZipPathStatic: (path: string) => void;

// Make react-toastify styles work (without a css loader and without copying the css file into our code)
injectStyle();

const App: React.FunctionComponent<{ initialFilePath: string }> = (props) => {
const [zipPath, setZipPath] = useState(props.initialFilePath);
setZipPathStatic = setZipPath;
Expand Down
1 change: 0 additions & 1 deletion src/renderer/ReactToastify.min.css

This file was deleted.

0 comments on commit 46a30b6

Please sign in to comment.