From 5985121c20798e65303342fa9d4f2a877fd8cb20 Mon Sep 17 00:00:00 2001 From: DavidGomezToca Date: Wed, 18 Sep 2024 14:43:33 +0200 Subject: [PATCH] FAIR SHARE 1.2.1 Delete Sweet Alert 2 Update README.md --- README.md | 3 +-- package-lock.json | 14 ++------------ package.json | 3 +-- src/components/App.js | 21 +++------------------ 4 files changed, 7 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 8c65358..c70a8f9 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,9 @@ - **STACK :** - - **Fair Share** : `1.2.0` + - **Fair Share** : `1.2.1` - **React** : `18.3.1` - **React Dom** : `18.3.1` - - **SweetAlert2** : `11.12.4` --- diff --git a/package-lock.json b/package-lock.json index 56f27d2..888276f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fair-share", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fair-share", - "version": "1.2.0", + "version": "1.2.1", "dependencies": { "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", @@ -14,7 +14,6 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-scripts": "5.0.1", - "sweetalert2": "^11.12.4", "web-vitals": "^2.1.4" } }, @@ -16608,15 +16607,6 @@ "boolbase": "~1.0.0" } }, - "node_modules/sweetalert2": { - "version": "11.12.4", - "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.12.4.tgz", - "integrity": "sha512-ZSpyaLbAmn4b7xjnV9x9BFD1UOrCAhIzm1D8dZ443kGxtVKqbTIA5SgXs4xeEtmFfEXUyC3RBgpSlu1AXmCiHA==", - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/limonte" - } - }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", diff --git a/package.json b/package.json index 9e26c03..4514674 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fair-share", - "version": "1.2.0", + "version": "1.2.1", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.17.0", @@ -9,7 +9,6 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-scripts": "5.0.1", - "sweetalert2": "^11.12.4", "web-vitals": "^2.1.4" }, "scripts": { diff --git a/src/components/App.js b/src/components/App.js index 28231f0..04ac547 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,4 +1,3 @@ -import Swal from "sweetalert2"; import { useState } from "react"; import FriendsData from "../data/friendsData.json"; @@ -137,25 +136,11 @@ function FormSplitBill({ selectedFriend, onSplitBill }) { }; if ((bill === paidByUser && whoIsPaying === "user") || (bill === paidByFriend && whoIsPaying === "friend")) { - let title = "Splitting this bill won't affect your current balance with " + selectedFriend.name; - Swal.fire({ - title: title, icon: "question", - customClass: { - htmlContainer: "swal2-text", - confirmButton: "swal2-text", - popup: "swal2-popup" - } - }); + // let title = "Splitting this bill won't affect your current balance with " + selectedFriend.name; + // TODO: Add Notification this bill won't affect your current balance } else { onSplitBill(whoIsPaying === "user" ? paidByFriend : -paidByUser); - Swal.fire({ - title: "Bill split succesfully", icon: "success", - customClass: { - htmlContainer: "swal2-text", - confirmButton: "swal2-text", - popup: "swal2-popup" - } - }); + // TODO: Add Notification bill split successfully } }