Amelioration de linterface et corrections bugs

This commit is contained in:
AISSI-JUDE-CHRIST
2026-06-14 20:45:13 +02:00
parent dabf1df6b9
commit 65b9eed6dc
8 changed files with 340 additions and 23 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ export function LoanProvider({ children }) {
return saved ? JSON.parse(saved) : [];
});
function addLoan(book, borrowerPhone, dueDate) {
function addLoan(book, borrowerUsername, dueDate) {
const loan = {
loanId: crypto.randomUUID(),
bookId: book.isbn,
bookTitle: book.title,
bookAuthor: book.author,
borrowerPhone,
borrowerUsername,
dueDate,
status: 'ACTIVE',
loanedAt: new Date().toISOString(),