Skip to content

Commit

Permalink
Fixing unused variables due to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
landicami committed Oct 22, 2024
1 parent 6eac23e commit 2186f08
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/read-mode-page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ export default function ReadModePageByPage({ savedPageIndex, setSavedPageIndex,
const [maxPageIndex, setMaxPageIndex] = useState(0);
const [firstPageIndex, setFirstPageIndex] = useState(0)
const [currentPageIndex, setCurrentPageIndex] = useState(null)
const [bookView, setBookView] = useState(FormatModeEnum.NORMAL_VIEW)
// const [bookView, setBookView] = useState(FormatModeEnum.NORMAL_VIEW)
// const [autoSave, setAutoSave] = useState(true)
const headingRefs = useRef({}); // Store references to the page headings
let autoSave = true;
const [selectedView, setSelectedView] = useState(bookView); // Temporär vy
let autoSave = true;
let bookView = FormatModeEnum.NORMAL_VIEW
// const [selectedView, setSelectedView] = useState(bookView); // Temporär vy

const handleConfirm = () => {
setBookView(selectedView); // Uppdatera när knappen trycks
};
// const handleConfirm = () => {
// setBookView(selectedView); // Uppdatera när knappen trycks
// };

updateBrowserTabText(pefObject.metaData.title);

Expand Down

0 comments on commit 2186f08

Please sign in to comment.