💄 Affiche qu'une page par une page

Pour #5
This commit is contained in:
Clement Desmidt 2022-04-14 11:22:44 +02:00
parent 4955b831a8
commit 364af3ea61
2 changed files with 2 additions and 6 deletions

6
public/js/app.js vendored
View File

@ -36869,10 +36869,6 @@ function PageForm(_ref) {
content = _React$useState2[0],
setContent = _React$useState2[1];
function updateContent(content) {
setContent(content);
}
var onSubmit = function onSubmit(event) {
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
var HTMLForm, decryptedFormData, encryptedFormData, _iterator, _step, _step$value, key, value, newEncryptedString, response, json, uuid, _iterator2, _step2, _key, _newEncryptedString, savedDate, oSavedDate;
@ -37073,7 +37069,7 @@ function Pages(_ref) {
loadPages = _ref.loadPages,
setAllLoaded = _ref.setAllLoaded;
var isPassphraseSet = passphrase !== null;
var perPage = 3;
var perPage = 1;
var total = pages.length;
var numberOfPage = Math.ceil(total / perPage);

View File

@ -7,7 +7,7 @@ import {isAllLoadedLocally} from "../../utils";
export default function Pages({pages, url, removeUrl, csrf, passphrase, loadPages, setAllLoaded}: IPages) {
const isPassphraseSet = passphrase !== null;
const perPage = 3;
const perPage = 1;
const total = pages.length;
const numberOfPage = Math.ceil(total/perPage);
const [currentPage, setPage] = React.useState(1);