Changeset 8ca35dc for my-react-app/src/components/Customers.js
- Timestamp:
- 01/19/25 23:18:37 (4 months ago)
- Branches:
- main
- Children:
- f5b256e
- Parents:
- db39d9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/components/Customers.js
rdb39d9e r8ca35dc 26 26 const handleDeleteClick = async (customerId) => { 27 27 try { 28 await axios.delete(`http://localhost:808 0/api/customers/delete/${customerId}`);28 await axios.delete(`http://localhost:8081/api/customers/delete/${customerId}`); 29 29 setCustomers(customers.filter(customer => customer.customerID !== customerId)); 30 30 window.location.reload(); … … 48 48 <p className="card-text"><strong>Phone:</strong> {customer.phone}</p> 49 49 <p className="card-text"><strong>Address:</strong> {customer.address}</p> 50 <p className="card-text"><strong>Membership 51 Level:</strong> {customer.membershipLevel}</p> 50 <p className="card-text"><strong>Membership Level:</strong> {customer.membershipLevel}</p> 52 51 {/*<p className="card-text"><strong>Registration*/} 53 52 {/* Date:</strong> {new Date(customer.registrationDate).toLocaleString()}</p>*/}
Note:
See TracChangeset
for help on using the changeset viewer.