diff --git a/api/database.json b/api/database.json index 8820ed7..f2ed7d2 100644 --- a/api/database.json +++ b/api/database.json @@ -21,13 +21,6 @@ "neededBy": "2021-11-26", "id": 3 }, - { - "description": "testing123", - "address": "488", - "budget": "558", - "neededBy": "2021-12-25", - "id": 4 - }, { "description": "testing123", "address": "488", diff --git a/scripts/Requests.js b/scripts/Requests.js index 029714f..cfe7c5a 100644 --- a/scripts/Requests.js +++ b/scripts/Requests.js @@ -1,10 +1,18 @@ -import { getRequests } from "./dataAccess.js" +import { getRequests, deleteRequest } from "./dataAccess.js" // requests exports the requests stored in application state as requests passed in as an ordered list wrapped inside an unordered list export const Requests = () => { const requests = getRequests() const convertRequestToListElement = (requests) => { - return `
  • ${requests.description}
  • ` + return ` +
  • + ${requests.description} + +
  • + ` } let html = `