feat: no limit display
This commit is contained in:
+5
-4
@@ -13,7 +13,7 @@ export const LicensePriceList = [
|
|||||||
{
|
{
|
||||||
title: "VoceChat Supreme",
|
title: "VoceChat Supreme",
|
||||||
limit: 99999,
|
limit: 99999,
|
||||||
pid: "price_1LkKqdGGoUDRyc3jnpZvXhzx",
|
pid: "price_1Lkgc7GGoUDRyc3j49Lqtncs",
|
||||||
desc: "User Limit: No Limit"
|
desc: "User Limit: No Limit"
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
@@ -24,9 +24,10 @@ export const LicensePriceList = [
|
|||||||
// desc: "User Limit: 500"
|
// desc: "User Limit: 500"
|
||||||
// }
|
// }
|
||||||
];
|
];
|
||||||
export const PAYMENT_URL_PREFIX = process.env.REACT_APP_RELEASE
|
export const PAYMENT_URL_PREFIX =
|
||||||
? `https://vera.nicegoodthings.com`
|
process.env.NODE_ENV === "production"
|
||||||
: `http://localhost:4000`;
|
? `https://vera.nicegoodthings.com`
|
||||||
|
: `http://localhost:4000`;
|
||||||
export const CACHE_VERSION = `0.3.1`;
|
export const CACHE_VERSION = `0.3.1`;
|
||||||
export const GuestRoutes = ["/", "/chat", "/chat/channel/:channel_id"];
|
export const GuestRoutes = ["/", "/chat", "/chat/channel/:channel_id"];
|
||||||
export const ContentTypes = {
|
export const ContentTypes = {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { useAppSelector } from "../../app/store";
|
|||||||
|
|
||||||
const useLicense = () => {
|
const useLicense = () => {
|
||||||
const userCount = useAppSelector((store) => store.users.ids.length);
|
const userCount = useAppSelector((store) => store.users.ids.length);
|
||||||
const { data: license } = useGetLicenseQuery();
|
const { data: license } = useGetLicenseQuery(undefined, { refetchOnMountOrArgChange: true });
|
||||||
const [check, { isLoading: isChecking, isSuccess: checked }] = useCheckLicenseMutation();
|
const [check, { isLoading: isChecking, isSuccess: checked }] = useCheckLicenseMutation();
|
||||||
const [upsert, { isSuccess: upserted, isLoading: upserting }] = useUpsertLicenseMutation();
|
const [upsert, { isSuccess: upserted, isLoading: upserting }] = useUpsertLicenseMutation();
|
||||||
const checkLicense = (l: string) => {
|
const checkLicense = (l: string) => {
|
||||||
|
|||||||
@@ -84,7 +84,9 @@ export default function License() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="item">
|
<div className="item">
|
||||||
<span className="label">User Limit</span>
|
<span className="label">User Limit</span>
|
||||||
<span className="info"> {licenseInfo?.user_limit}</span>
|
<span className="info">
|
||||||
|
{licenseInfo?.user_limit == 99999 ? "No Limit" : licenseInfo?.user_limit}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="item">
|
<div className="item">
|
||||||
<span className="label">Expired At</span>
|
<span className="label">Expired At</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user