se default freq. 3
This commit is contained in:
parent
7808a39aa0
commit
4a98c3d5e8
@ -107,6 +107,11 @@ const Profile = ({ data }) => {
|
|||||||
<span className="fw-semibold">Seat Available:</span>
|
<span className="fw-semibold">Seat Available:</span>
|
||||||
<span className="ms-2">{data?.seatsAvailable}</span>
|
<span className="ms-2">{data?.seatsAvailable}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="col-12 col-md-6 d-flex align-items-center my-2 m-0">
|
||||||
|
<i className="bx bx-sm bx-group me-1"></i>
|
||||||
|
<span className="fw-semibold">Total Seat:</span>
|
||||||
|
<span className="ms-2">{data?.currentPlan?.maxUsers}</span>
|
||||||
|
</div>
|
||||||
<div className="col-12 col-md-6 d-flex align-items-center">
|
<div className="col-12 col-md-6 d-flex align-items-center">
|
||||||
<i className="bx bx-sm bxs-calendar me-1"></i>
|
<i className="bx bx-sm bxs-calendar me-1"></i>
|
||||||
<span className="fw-semibold">On-Boarding Date:</span>
|
<span className="fw-semibold">On-Boarding Date:</span>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
const SegmentedControl = ({setFrequency}) => {
|
const SegmentedControl = ({setFrequency,defultFequency}) => {
|
||||||
const [selected, setSelected] = useState(3);
|
const [selected, setSelected] = useState(defultFequency);
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
setFrequency(selected)
|
setFrequency(selected)
|
||||||
},[selected])
|
},[selected])
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import { useSelector } from "react-redux";
|
|||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
const SubScription = ({ onSubmitSubScription, onNext }) => {
|
const SubScription = ({ onSubmitSubScription, onNext }) => {
|
||||||
const [frequency, setFrequency] = useState(2);
|
const [frequency, setFrequency] = useState(3);
|
||||||
const [selectedPlanId, setSelectedPlanId] = useState(null);
|
const [selectedPlanId, setSelectedPlanId] = useState(null);
|
||||||
const selectedTenant = useSelector(
|
const selectedTenant = useSelector(
|
||||||
(store) => store.globalVariables.currentTenant
|
(store) => store.globalVariables.currentTenant
|
||||||
@ -79,7 +79,7 @@ const SubScription = ({ onSubmitSubScription, onNext }) => {
|
|||||||
if(isError) return <div className="text-center">{subscriptionGettingError?.message}</div>
|
if(isError) return <div className="text-center">{subscriptionGettingError?.message}</div>
|
||||||
return (
|
return (
|
||||||
<div className="text-start">
|
<div className="text-start">
|
||||||
<SegmentedControl setFrequency={setFrequency} />
|
<SegmentedControl setFrequency={setFrequency} defultFequency = {frequency}/>
|
||||||
|
|
||||||
{!isLoading && !isError && plans.length > 0 && (
|
{!isLoading && !isError && plans.length > 0 && (
|
||||||
<div className="row g-4 my-6">
|
<div className="row g-4 my-6">
|
||||||
|
|||||||
@ -82,18 +82,23 @@ const SubScriptionHistory = ({ tenantId }) => {
|
|||||||
key: "price",
|
key: "price",
|
||||||
label: "Amount",
|
label: "Amount",
|
||||||
getValue: (e) => (
|
getValue: (e) => (
|
||||||
<>
|
<span className="d-inline-block px-3">
|
||||||
{e.currency?.symbol || "₹"} {e.price}
|
{e.currency?.symbol || "₹"} {e.price}
|
||||||
</>
|
</span>
|
||||||
),
|
),
|
||||||
align: "text-end pe-4",
|
align: "text-end",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "planName",
|
key: "planName",
|
||||||
label: "Plan Name",
|
label: "Plan Name",
|
||||||
getValue: (e) => e.planName,
|
getValue: (e) => (
|
||||||
align: "text-start ps-4",
|
<span className="d-inline-block ps-4">
|
||||||
},
|
{e.planName}
|
||||||
|
</span>
|
||||||
|
),
|
||||||
|
align: "text-start",
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
key: "action",
|
key: "action",
|
||||||
label: "Action",
|
label: "Action",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user