diff --git a/src/components/Tenant/Profile.jsx b/src/components/Tenant/Profile.jsx index c8f30f72..da9901e5 100644 --- a/src/components/Tenant/Profile.jsx +++ b/src/components/Tenant/Profile.jsx @@ -107,6 +107,11 @@ const Profile = ({ data }) => { Seat Available: {data?.seatsAvailable} +
+ + Total Seat: + {data?.currentPlan?.maxUsers} +
On-Boarding Date: diff --git a/src/components/Tenant/SegmentedControl.jsx b/src/components/Tenant/SegmentedControl.jsx index 2adf5bf6..e686184c 100644 --- a/src/components/Tenant/SegmentedControl.jsx +++ b/src/components/Tenant/SegmentedControl.jsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from 'react'; -const SegmentedControl = ({setFrequency}) => { - const [selected, setSelected] = useState(3); +const SegmentedControl = ({setFrequency,defultFequency}) => { +const [selected, setSelected] = useState(defultFequency); useEffect(()=>{ setFrequency(selected) },[selected]) diff --git a/src/components/Tenant/SubScription.jsx b/src/components/Tenant/SubScription.jsx index 1006e5b3..1f4e823a 100644 --- a/src/components/Tenant/SubScription.jsx +++ b/src/components/Tenant/SubScription.jsx @@ -8,7 +8,7 @@ import { useSelector } from "react-redux"; import { useNavigate } from "react-router-dom"; const SubScription = ({ onSubmitSubScription, onNext }) => { - const [frequency, setFrequency] = useState(2); + const [frequency, setFrequency] = useState(3); const [selectedPlanId, setSelectedPlanId] = useState(null); const selectedTenant = useSelector( (store) => store.globalVariables.currentTenant @@ -79,7 +79,7 @@ const SubScription = ({ onSubmitSubScription, onNext }) => { if(isError) return
{subscriptionGettingError?.message}
return (
- + {!isLoading && !isError && plans.length > 0 && (
diff --git a/src/components/Tenant/SubScriptionHistory.jsx b/src/components/Tenant/SubScriptionHistory.jsx index 56b7638b..2e781ac6 100644 --- a/src/components/Tenant/SubScriptionHistory.jsx +++ b/src/components/Tenant/SubScriptionHistory.jsx @@ -78,22 +78,27 @@ const SubScriptionHistory = ({ tenantId }) => { SUBSCRIPTION_PLAN_FREQUENCIES[e.frequency] || "N/A", align: "text-start", }, - { - key: "price", - label: "Amount", - getValue: (e) => ( - <> - {e.currency?.symbol || "₹"} {e.price} - - ), - align: "text-end pe-4", - }, - { - key: "planName", - label: "Plan Name", - getValue: (e) => e.planName, - align: "text-start ps-4", - }, + { + key: "price", + label: "Amount", + getValue: (e) => ( + + {e.currency?.symbol || "₹"} {e.price} + + ), + align: "text-end", +}, +{ + key: "planName", + label: "Plan Name", + getValue: (e) => ( + + {e.planName} + + ), + align: "text-start", +}, + { key: "action", label: "Action",