From ed5ff3be4b0a526b494ea35f2893f77dd6e2457b Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Thu, 7 Aug 2025 11:26:23 +0530 Subject: [PATCH] success fully created tenant with subscription --- src/components/Tenanat/Congratulation.jsx | 17 +++ src/components/Tenanat/ContactInfro.jsx | 20 +-- src/components/Tenanat/OrganizationInfo.jsx | 42 +++---- src/components/Tenanat/SubScription.jsx | 8 +- src/components/Tenanat/TenantForm.jsx | 19 ++- src/components/Tenanat/TenantsList.jsx | 130 +++++++++++--------- src/hooks/useTenant.js | 13 +- src/pages/Tenant/TenantPage.jsx | 87 ++++++++----- src/repositories/TenantRepository.jsx | 24 ++-- 9 files changed, 214 insertions(+), 146 deletions(-) create mode 100644 src/components/Tenanat/Congratulation.jsx diff --git a/src/components/Tenanat/Congratulation.jsx b/src/components/Tenanat/Congratulation.jsx new file mode 100644 index 00000000..372fccee --- /dev/null +++ b/src/components/Tenanat/Congratulation.jsx @@ -0,0 +1,17 @@ +import React from 'react' +import { Link, useNavigate } from 'react-router-dom' + +const Congratulation = () => { + const navigate = useNavigate() + return ( +
+

🎉 Congratulations!

+

Your tenant is successfully onboarded.

+
+

navigate('/tenants')}>Go To Tenant list

Preview Tenant

+
+
+ ) +} + +export default Congratulation \ No newline at end of file diff --git a/src/components/Tenanat/ContactInfro.jsx b/src/components/Tenanat/ContactInfro.jsx index 316dce09..f9721ffd 100644 --- a/src/components/Tenanat/ContactInfro.jsx +++ b/src/components/Tenanat/ContactInfro.jsx @@ -32,11 +32,11 @@ const ContactInfro = ({ onNext }) => { {errors.firstName && ( -
{errors.firstName.message}
+
{errors.firstName.message}
)}
@@ -46,11 +46,11 @@ const ContactInfro = ({ onNext }) => { {errors.lastName && ( -
{errors.lastName.message}
+
{errors.lastName.message}
)}
@@ -60,11 +60,11 @@ const ContactInfro = ({ onNext }) => { {errors.email && ( -
{errors.email.message}
+
{errors.email.message}
)}
@@ -74,11 +74,11 @@ const ContactInfro = ({ onNext }) => { {errors.contactNumber && ( -
{errors.contactNumber.message}
+
{errors.contactNumber.message}
)}
@@ -87,12 +87,12 @@ const ContactInfro = ({ onNext }) => {