From 364af3ea617a9f32cb0a60a3e705383a608c7964 Mon Sep 17 00:00:00 2001 From: Clement Desmidt Date: Thu, 14 Apr 2022 11:22:44 +0200 Subject: [PATCH] :lipstick: Affiche qu'une page par une page Pour #5 --- public/js/app.js | 6 +----- resources/js/components/pages/List.tsx | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 60ba339..a73b704 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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); diff --git a/resources/js/components/pages/List.tsx b/resources/js/components/pages/List.tsx index 4c6dda3..b363e6f 100644 --- a/resources/js/components/pages/List.tsx +++ b/resources/js/components/pages/List.tsx @@ -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);