Loris
Loris copied to clipboard
[cleanup] PaginationLinks as functional tsx component
The PaginationLinks was the first React component ever written in LORIS. As such, it is currently a class based component written in Javascript. It also dated from a time where some pages were partially in React while other parts of the page were smarty and it had to be included in getJSDependencies().
This rewrites the component in typescript as a functional component and stops it from being placed in htdocs, now that it is imported everywhere and we do not have any hybrid pages anymore.
Sent as a draft to be sure it doesn't accidentally get merged before the release (or at least before the release branch is created.)