0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 09:12:45 +00:00

add comment

This commit is contained in:
Gazook89
2024-10-21 22:20:52 -05:00
parent 5c0d6e6012
commit 26050e2134

View File

@@ -71,6 +71,7 @@ const ToolBar = ({ onZoomChange, visiblePages, totalPages })=>{
return deltaZoom;
};
// format the visible pages to work with ranges, including separate ranges ("2-7, 10-15")
const formatVisiblePages = (pages)=>{
if(pages.length === 0) return '';