From 25801733bc493c7621d3d752880950904aafea9e Mon Sep 17 00:00:00 2001 From: Sadaf <137484958+SadafKausar2025@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:34:36 +0530 Subject: [PATCH] Created Deactivate and delete form for VigyBag Account --- package-lock.json | 13 ++ package.json | 1 + src/User/components/Footer/Footer.jsx | 10 +- src/User/pages/Dashboard/ProfilePage.jsx | 219 ++++++++++++++++++++++- src/User/pages/Dashboard/model.css | 37 ++++ 5 files changed, 272 insertions(+), 8 deletions(-) create mode 100644 src/User/pages/Dashboard/model.css diff --git a/package-lock.json b/package-lock.json index 2cfec0bb..eeee72a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "react-slick": "^0.30.2", "react-spinners": "^0.14.1", "react-use": "^17.5.0", + "reactjs-popup": "^2.0.6", "sitemap": "^8.0.0", "slick-carousel": "^1.8.1", "styled-component": "^2.8.0", @@ -13891,6 +13892,18 @@ "react-dom": "*" } }, + "node_modules/reactjs-popup": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/reactjs-popup/-/reactjs-popup-2.0.6.tgz", + "integrity": "sha512-A+tt+x9wdgZiZjv0e2WzYLD3IfFwJALaRaqwrCSXGjo0iQdsry/EtBEbQXRSmQs7cHmOi5eytCiSlOm8k4C+dg==", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": ">=16", + "react-dom": ">=16" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/package.json b/package.json index 23a73d28..80bfceb3 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "react-slick": "^0.30.2", "react-spinners": "^0.14.1", "react-use": "^17.5.0", + "reactjs-popup": "^2.0.6", "sitemap": "^8.0.0", "slick-carousel": "^1.8.1", "styled-component": "^2.8.0", diff --git a/src/User/components/Footer/Footer.jsx b/src/User/components/Footer/Footer.jsx index c99fb026..5789d48d 100644 --- a/src/User/components/Footer/Footer.jsx +++ b/src/User/components/Footer/Footer.jsx @@ -68,15 +68,15 @@ const Footer = () => { Contact us - - Our Services - - - Meet our contributor + + Careers Certification Page + + Meet our contributor +

CONSUMER POLICY

{" "} diff --git a/src/User/pages/Dashboard/ProfilePage.jsx b/src/User/pages/Dashboard/ProfilePage.jsx index 7e56a21b..ce06d073 100644 --- a/src/User/pages/Dashboard/ProfilePage.jsx +++ b/src/User/pages/Dashboard/ProfilePage.jsx @@ -2,7 +2,9 @@ import React, { useState } from "react"; import Aside from "../../components/Aside/Aside"; import copy from "../../../assets/copy.png"; import toast from "react-hot-toast"; - +import Popup from "reactjs-popup"; +import "reactjs-popup/dist/index.css"; +import "./model.css"; import "./profile.css"; const ProfilePage = () => { @@ -15,6 +17,215 @@ const ProfilePage = () => { "https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg", // Sample avatar URL }); + const DeactivateAccount = () => ( + + Deactivate Account + + } + modal + nested> + {(close) => ( +
+ +
+

+ When You Deactivate Your VigyBag Account +

+
+
    +
  • You are logged out of your VigyBag account.
  • +
    +
  • Your public profile on VigyBag is no longer visible.
  • +
    +
  • + Your reviews/ratings are still visible, but your profile + information is shown as ‘unavailable’ due to deactivation. +
  • +
    +
  • + Your wishlist items are no longer accessible through the + associated public hyperlink. The wishlist is shown as + ‘unavailable’ due to deactivation. +
  • +
    +
  • + You will be unsubscribed from receiving promotional emails from + VigyBag. +
  • +
    +
  • + Your account data is retained and can be restored if you choose + to reactivate your account. +
  • +
+
+ +

+ How Do I Reactivate My VigyBag Account? +

+

Reactivation is easy.

+
+
    +
  • + Simply log in with your registered email ID or mobile number and + the password used prior to deactivation. Your account data will + be fully restored. +
  • +
    +
  • + Default settings will be applied, and you will be subscribed to + receive promotional emails from VigyBag. +
  • +
    +
+

+ VigyBag retains your account data so you can conveniently resume + from where you left off if you decide to reactivate your account. +

+

+ Remember: Account reactivation can be done only + on the desktop version. +

+
+
+ +
+
+ )} +
+ ); + + const DeleteAccount = () => ( + + Delete Account + + } + modal + nested> + {(close) => ( +
+ +
+

+ Please note that once you choose to delete your account + with VigyBag (“Platform”), your account will no longer be + available to you and you will not be able to activate, restore, or + use the account again. +

+

+ In case you are not sure about deleting your account, you may + instead deactivate your account. +

+

+ When you deactivate your account, you are logged out of your + account, your public profile on the Platform is no longer visible, + your wishlist items are no longer accessible through the + associated public hyperlink, and you will be unsubscribed from + receiving promotional emails. +

+ +

+ If you wish to proceed with an account deletion request, please + ensure that you have read and understood the following: +

+
    +
  • + There are no pending orders, cancellations, returns, refunds, or + other requests (“Transactions”). If there are pending + Transactions, please raise your account deletion request once + the Transactions are completed. +
  • +
  • + If you hold any subscription or membership, you will lose all + benefits and rewards associated with it immediately upon + deletion of the account. +
  • +
  • + You have exhausted or do not intend to use SuperCoins, Gift + Cards, or any such reward points or balances associated with + your account. Please note that once your account is deleted, you + will not be able to access any such reward points. +
  • +
  • + You will not be able to access or request to access order + history, profile, wishlists, saved addresses, previous orders + and invoices, saved or preferred payment methods, content, + images, or use any of the products and services offered by the + Platform immediately on deletion and will have to create a new + account to use products and services offered by us. +
  • +
  • + The Platform may choose to refuse deletion of your account in + case you have any legal dispute, or grievances related to + pending payments to your orders, shipments or deliveries, credit + lines, etc. +
  • +
  • + The Platform may retain certain data for legitimate reasons + (towards enforcement of legal rights or regulatory compliance) + such as security, fraud prevention, future abuse, and regulatory + compliance including the exercise of legal rights or comply with + legal orders under applicable laws. +
  • +
  • + After your account is deleted, if you log into the Platform + using the same phone number or email ID, a fresh new account + will be created and your old account data will not be + accessible. +
  • +
  • + Please uninstall the VigyBag App after your account is deleted + to stop receiving any notifications from VigyBag. Notifications + are app-level settings and uninstalling the app is required to + stop the notifications. +
  • +
+

+ You acknowledge that you have read our + Terms of Use and + Privacy Policy. +

+

+
+


+
+ I have read and + agreed to the Terms and Conditions. +

+ +

Please tell us why you’re leaving us

+