Skip to content

Commit

Permalink
fix(l10n): index out of total number can be expressed with slash for …
Browse files Browse the repository at this point in the history
…now (see issue #2210 )
  • Loading branch information
danielweck committed May 16, 2024
1 parent 5f1d1b2 commit 1bf338d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/reader/components/ReaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ const AnnotationList: React.FC<{ r2Publication: R2Publication, dockedMode: boole
const SelectRef = React.forwardRef<HTMLButtonElement, MySelectProps<{ id: number, value: number, name: string }>>((props, forwardedRef) => <Select refButEl={forwardedRef} {...props}></Select>);
SelectRef.displayName = "ComboBox";

const pageOptions = Array(pageTotal).fill(undefined).map((_,i) => i+1).map((v) => ({id: v, value: v, name: `${v} on ${pageTotal}`}));
const pageOptions = Array(pageTotal).fill(undefined).map((_,i) => i+1).map((v) => ({id: v, value: v, name: `${v} / ${pageTotal}`}));

return (
<>
Expand Down Expand Up @@ -780,7 +780,7 @@ const BookmarkList: React.FC<{ r2Publication: R2Publication} & Pick<IReaderMenuP
const SelectRef = React.forwardRef<HTMLButtonElement, MySelectProps<{ id: number, value: number, name: string }>>((props, forwardedRef) => <Select refButEl={forwardedRef} {...props}></Select>);
SelectRef.displayName = "ComboBox";

const pageOptions = Array(pageTotal).fill(undefined).map((_,i) => i+1).map((v) => ({id: v, value: v, name: `${v} on ${pageTotal}`}));
const pageOptions = Array(pageTotal).fill(undefined).map((_,i) => i+1).map((v) => ({id: v, value: v, name: `${v} / ${pageTotal}`}));

return (
<>
Expand Down

0 comments on commit 1bf338d

Please sign in to comment.